Copy/Move Files preserving all metadata

Hi,
Silly question, but how do I copy or move files on an OES11 sp1 NSS volume (source and destination are on the same server) in such a way that all the metadata and data structure is preserved? In particular I want to preserve ownership, trustee's, timestamps, and namespaces. Thus I cannot use for example a Windows client since it does not understand the Mac namespace among other things. If the data were on NetWare NSS volumes (as both source and destination) then I would use SCMT. But of course SCMT does not work with OES11. I tried using the Miggui tool, but it does not work either - it does not support the source and destination being on the same server.
My use case is that I want to move a user's homedirectory to a new volume (on either the same or a different server) and then create a junction from the original location to the new thus eliminating the two hassles of updating the user object homedirectory attribute in eDir and/or revising the shortcut/alias on their desktop (typically an OSX client).
Thanks,
Ron

All accounts I am testing with are LUMified and 'id' on the server is copacetic too, so that is not it. I thought that maybe it was some "bad info" in one of the miggui xml project files so I blew them all away (/var/opt/novell/migration/). Tried with the bad account - and it still failed. So I looked at the log file and found this bug reported there:
2013-09-27 12:28:37,718 ERROR - FILESYSTEM:volmount.rb:Command to mount source: ruby /opt/novell/migration/sbin/volmount.rb -s 0.1.2.3 -a "cn=badaccount,ou=x,o=y" -c Not Applicable -f "/var/opt/novell/migration/NewProj0/fs/mnt/source" -m -t OES20
2013-09-27 12:28:37,722 INFO - FILESYSTEM:volmount.rb:*****************Command output start**********************************
2013-09-27 12:28:37,722 INFO - FILESYSTEM:volmount.rb:Information: ldapsearch command executed as "ldapsearch -LLL -s sub -H ldaps://0.1.2.3 -x -D "cn=badaccount,ou=x,o=y" "(&(CN=n12_*)(objectClass=Volume))" linuxNCPMountPoint -W"
2013-09-27 12:28:37,722 INFO - FILESYSTEM:volmount.rb:/opt/novell/migration/sbin/volmount.rb:616: [BUG] Segmentation fault
2013-09-27 12:28:37,722 INFO - FILESYSTEM:volmount.rb:ruby 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux]
Clearly the attempt to mount the volumes as sources is causing a segmentation fault - says so right there! But it has no problem with the exact same volumes as targets. Likely this is because the target is the local server and nothing special needs to be done to mount the target file systems since they are arleady mounted. But the source could be anything so it is going to try to identify and mount the source filesystems via that volmount.rb script.
I decided to try the offending command from the command-line to see if I could get better feedback on the error and to quickly/easily try different parameters. Right away I could see that the miggui was either not passing the password on the command-line or it was but was hiding it in the log file. Also it passes an incorrect type with the '-t OES20' parameter. It should be '-t OES2'. However looking at the volmount.rb script it turns out that it only tests for 'NW' / not 'NW'. Thus if you pass it '-t popo' it will still work just fine!
The long story made short is that I have no idea what is causing this bug. At one point I thought that it was an error in handling certain characters in the password, such as &. But that turned out to be a red herring. After a lot of password testing, eDir object rights futzing and filesystem trustee assignment poking I've come up with... "it is working now - no idea what was wrong earlier". Sigh I hate these kind of problems.
Cheers,
Ron

Similar Messages

  • Error message when copying .mov files

    Hello,
    I'm trying to copy .mov files to back up from my desktop and from an external hardrive (250gb) to a new external hardrive (350gb) but each time I am getting the an error message saying the operation can not be completed due to unexpected error (error code 0). The files i am trying to copy are between 7gb and 20gb. Does anyone what what the error message means or how I can get around it please?!
    Thanks!

    If you want to use large files you have to reformat it. It will erase any data that is on the drive, If the drive will be used only with OSX, format it as Mac Extended (HFS+) Journaled with the GUID partition table.
    Start Disk Utility (Utilities Folder). Select the drive in the left column (be sure to select the drive, all the way at the left, not the volume indented below it). Select the "Partition" tab. Set "Volume Scheme" to "1 Partition". Click the "Options" button. Select "GUID Partition Table". Click the "OK" button. Enter the volume name and click the "Apply" button.

  • How can I copy a file with all attributes

    Is there a way within Java to copy a file, with all its file attributes?
    I have seen a number of custom methods posted on these forums for copying the contents of a file to a new file with the same name in another location. The problem is that these methods don't copy the file attributes, particularly the creation date.
    If there is no way to do this in Java, is there a way to have Java execute an operating system command, such as "COPY" or to access the O/S to change the file attributes?
    Thanks for any help you can provide.

    This is how runtime executes a batch file.
    try {
      Process p = Runtime.getRuntime().exec("cmd /c start c:\\batfile.bat");
      p.waitFor();
    } catch (Exception e) {
        System.out.println(e.toString());
    }

  • How do I copy/move files?

    What class do I use to copy/move files? I looked in java.io.file but I didn't see anything appropriate.

    Thanks for the point about NT and AIX. The exact reason I'm looking at this is to develop a stored procedure in an Oracle DB which will assist with backup operations on both NT and AIX. Thus whatever I do needs to work both places. We already have OS specific scripts that I'd like to get rid of . . .

  • Copy/move file on application server

    Hey guys,
    is there an easy way to copy/move a file from one directory on application server to an other directory? I know i could use the commands OPEN DATASET and so on. Is there an other way to do this via a function module?
       thx,
         M.
    Moderator Message: Please search before posting, this has been discussed many times in the forum. All points unassigned
    Edited by: Suhas Saha on Aug 13, 2011 10:28 PM

    Hi ,
    As you know about the open dataset way of doing this ...You need another way and that will be as mentioned in the link below .....
    [Copy one file to another on application server |Re: Move  file from one folder to another floder in application server;
    Hope it helps ....
    Thanks,
    Anjaneya
    Edited by: Anjaneya Bhardwaj on Aug 13, 2011 1:02 PM

  • Can't copy .mov files to another drive, get msg

    Hi
    I've been trying to copy some .mov files (ext. isn't showing, btw) to another drive. When I do I get this msg, 'The operation can't be completed because the item "blah blah" is in use.
    I also have gotten this msg when copying the folder: 'The operation can't be completed because the item ".DS_Store" is in use.
    Then I tried creating a new folder to put them in, and I get this msg, "The operation can't be completed. An unexpected error occurred (error code -50).
    QT isn't open. The only apps open are Firefox and Word.
    I tried adding both drives to Spotlight's Privacy in System Prefs. No help.
    Any ideas?
    best,
    elmer

    Thanks for the reply!
    What is the 'DS_Store' file?
    Am I right thinking Tinker Tool allows you to choose from that list of details on this page <http://www.bresink.com/osx/0TinkerTool/details.html>, and doesn't simply enable them all?
    Thanks again, maybe someone else can chime in about why I got the other messages, tho maybe the ds_store was the reason for all.

  • Copy/Move files with FIFO-Buffer/Pipeline?

    Greetings,
    I'm looking for a way to copy or move files in the follwoing way:
    1) select target directory
    2) put files in a buffer. the files will be copied/moved to the target directory one after the other (FIFO)
    I think this would be a convenient feature for a file manager but I have not found one which works that way. Command line solutions would also be appreciated.
    Thanks,
    Beezle

    karol wrote:Would 'cp something_1 somewhere && cp something_2 somewhere && ...' do the trick?
    No, because I want the first file/folder to be copied/moved while I am still doing the selection in order to save time.
    Sorry for the confusion. The files should not actually be copied into a buffer, it only keeps in mind which files/folders I wish to copy/move. When a new file/folder is selected, it does not start copying/moving immediately but waits until the previous files/folders are done. The benefit would be that no parallel actions occur (but I can still select files/folders at my own pace and copying/moving occurs while I am still selecting).
    The rox-scripting idea sounds pretty good. I briefly tried writing a pygtk script but could not get drag and drop to work.
    Thank you.
    edit: It's not like I'm copying and moving files around all day like mad, I just want to be as efficient as possible.
    Last edited by Beezle (2012-01-13 16:27:15)

  • Failure to copy MOV files to an external hard drive

    I only have 185 GB worth of hard drive space on my Mac and I do video editing, so I always move the files onto an external hard drive to save the space on my computers hard drive. Lately, I've been having issues when some of the MOV files give me the following error:
    Sorry, the following operation could not be completed because an unexpected error occurred.
    (Error Code 0)
    Some of the files will copy over perfectly fine, but others give this error. All of these files have been created from Final Cu Pro 7.0. Please let me know what I can do to move them off of my computer.
    Thanks

    How big are they and how is the external drive formatted?

  • Copying .mov files to usb

    I have a macbook pro and want to copy a 6Gb and 11Gb .mov file to usb to transfer to a windows laptop.  Max I can copy on Fat 32 is 4 GB. 
    Can you help please.  I am using maverick OS.

    Hi there, this is a common compatability issue with using both windows and mac but thankfully theres a way around it, you have to re format youre usb to a later format called ExFAT, this format will allow you to transfer files of all sizes. please follow these steps. if it becomes a bit confuesing, please let me know and i will provide some screen shots.
    1. connect youre usb to youre mac computer.
    2. back up anything thats on youre usb device.
    3. open up spotlight on the top right hand corner of youre screen and type in "disk utility"
    4. once opened you will see a pannel on youre right hand side with all of youre hardrives and usb flash drives, locate the one you want to use and left click on it.
    5. on the right hand side the will be  5 pannels " first aid. erase, partistion, raid, restore.   the one you want to click on is erase.
    6. you will now see and option for format, select ExFAT and then click on erase.
    and thats it you can now transfer files of any size.

  • Moving, Deleting or copying mov files...can't do  it!!!!

    This is driving me crazy....I shoot .mov files with my Canon 5D mark 2 camera...up until now I have successfullly edited, copied, or deleted all .mov files...Now for some reason I'll put a bunch of files on my desktop and one or 2 will cause my explorer interface to lock up..showing a frozen dialog box attempting to move, delete or copy the files...I have to uninstall quicktime to move the files...then when I reinstall quicktime the same thing happens..When I go into safe mode I can delete the files but can't move or copy any files that reside in the same directory as the problem files...there's gotta be a reason for this...any guesses???
    Steve

    Well...your guess is wrong...I am not dumb enough to use any of the canon utilities to download or work with the .mov files...I am a very experienced vista user and have gone through all the various security and permission settings..it is definitely due to the installation of quicktime...I tried disabling all the start up calls for quicktime as well as a safe mode and limited start up boot..all to no avail...instead of telling me what you think I don't know how about sharing what you may know???
    Steve

  • Delete partially copied movie file from iPhone. Shows grayed out in Videos on the iPhone but it doesn't show up in iTunes.

    Hello.
      I have synced my iPhone 4S with iTunes and I got an error while copying one movie. Now this movie shows up grayed out in videos on the iPhone but NOT in iTunes. Hence, I cannot delete this partially copied movie from my iPhone. And since it is grayed out, the right-to-left swipe does not work. I have resynced with "no movies" option so that every movie would be deleted and indeed every movie was deleted except for the problematic one. I rebooted the iPhone several times in case it was a glitch. No success. I even tried tools like iExplorer and DiskAid but I cannot find this **** file. Is there any way to delete this partially copied file from the iPhone without having to restore it?
    Regards,
    HawkeyeQ

    Hi adtsalmon,
    You can only watch the movie on the device you rented it on. Here's a snippet from the Apple Support site (italics mine):
    If you download a rented movie on your computer: You can transfer it to a device such as your Apple TV (1st generation), iPhone, iPad, or iPod if it’s a standard-definition film (movies in HD can only be watched on your computer, iPad, iPhone 4 or later, iPod touch (4th generation or later), or Apple TV). Once you move the movie from your computer to a device, the movie will disappear from your computer's iTunes library. You can move the movie between devices as many times as you wish during the rental period, but the movie can only exist on one device at a time.
    If you download a rented movie on your iPhone 4 or later, iPad, iPod touch (4th generation or later), or Apple TV: It is not transferable to any other device or computer.
    Here's the link to the Movie Rentals FAQs site FYI:
    http://support.apple.com/kb/HT1657
    Hope this helps!
    Cheers,
    GB

  • Copying movie files into a presentation

    Hi.
    I have a keynote presentation which includes lots of pictures. When I saved my presentation, I saved it with the option to copy the image files into my presentation document.
    However, I would like to copy some movie files into the presentation as well, but I do not want the movie files to be copied into the keynote presentation document.
    Is there anyway I can do this? If you have any suggestions, please let me know. Thank you very much.

    Keynote ALWAYS copie images into the file (except the theme images from the built-in themes, but it always copies YOUR images into the file). When you first saved it, did you check the box that said copy movies and audio into the file? If you did NOT check this then you're fine. If you did, you might have to make a new file and copy over your slides, then save it and make sure that box is UNCHECKED when you save it the first time.

  • Copy a file to all users' desktops.

    I want to copy a PDF file to all users' desktops, so I created a GPP to do this and it works if I place the source file, the PDF, on a shared folder.
    However, my GPP will span a large network, across half the globe, thus having the PDF on a file server in one location will take a long time to copy to users' workstations in another location. I thus would like to replicate the PDF file along all the DCs
    using the NETLOGON folder.
    I thus placed the file in the following folder on my local domain controller:
    C:\Windows\SYSVOL\sysvol\brightstarcorp.com\scripts\APAC\Files for APAC users
    In my GPP, I used the following reference for the location of the PDF file:
    Source: %logonserver%\NetLogon\APAC\Files for APAC users\APAC IT Support Contact Details final.pdf
    Target: %userprofile%\desktop\APAC IT Support Contact Details final.pdf
    Is this the correct way to do this?
    My GPP is created on a Win2012 server for Win2008 domain controllers and Win7 clients.

    When I put this in Explorer on the test machine:
    %logonserver%\NetLogon\APAC\Files for APAC users\APAC IT Support Contact Details final.pdf
    I get the error:
    "Windows cannot access \\MyADServer01\NetLogon\APAC\Files for APAC users\APAC IT Support Contact Details final.pdf"
    But when I put this into Explorer"
    %logonserver%\NetLogon\APAC\Files for APAC users\
    ....it opens the folder (replacing the %LOGONSERVER% with the domain controller name "MyADServer01" and displays the file. I can then double-click the file and open it.
    Using the DC name or not, with the filename in the Explorer address bar, it will not open the file.
    Event Viewer:
    Log Name:      Application
    Source:        Group Policy Files
    Date:          27/12/2014 7:39:38 PM
    Event ID:      4098
    Task Category: (2)
    Level:         Warning
    Keywords:      Classic
    User:          SYSTEM
    Computer:      TestWS.mydomain.com
    Description:
    The user 'APAC IT Support Contact Details final.pdf' preference item in the 'APAC - Add IP Support Document to Workstation {E31F55EA-EF46-400B-A77A-012ECF400EC7}' Group Policy object did not apply because it failed with error code '0x80070002 The system cannot
    find the file specified.' This error was suppressed.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Group Policy Files" />
        <EventID Qualifiers="34305">4098</EventID>
        <Level>3</Level>
        <Task>2</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-12-27T08:39:38.000000000Z" />
        <EventRecordID>258023</EventRecordID>
        <Channel>Application</Channel>
        <Computer>TestWS.mydomain.com</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data>user</Data>
        <Data>APAC IT Support Contact Details final.pdf</Data>
        <Data>APAC - Add IP Support Document to Workstation {E31F55EA-EF46-400B-A77A-012ECF400EC7}</Data>
        <Data>0x80070002 The system cannot find the file specified.</Data>
      </EventData>
    </Event>
    Strange!

  • Cannot copy MOV files

    I took video on my iphone 4 and want to transfer them to an ipad, first generation.  During sync got the following message "some of the videos in itunes library could not be copied to the ipad because they cannot be played on this ipad"...any idea why and how I can fix it?

    Here are the formats the first generation iPad supports.  MOV files are included.  But note the formats are limited, as the first generation iPad does not have a camera.
    iPad - Technical Specifications

  • Can't copy/ move files

    IMAC intel with Lion.  My adobe photo downloader will not download pictures. Finder gives the pinwheel of death for even moving a single file to another file location on the HD. I can't print anymore.  Safari does not work properly.  I can't move file to USB drive.
    I have rebooted several times with no change when I do these activities.
    Is this an internal memory problem?
    If it is - is there any way I can clean it up?
    I don't know of any recent changes that may have triggered this.
    Thanks in advance.

    Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    If 10.7.0 or later...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    If problems persist...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free Disk space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab of Activity Monitor, are there a lot of Pageouts?

Maybe you are looking for