Robocopy

Please post any helpful and useful tips to maximize your fellow ReadyNAS users' experience.

Robocopy

Postby brianadkins » Wed Apr 26, 2006 12:42 pm

I used Robocopy to initially populate my ReadyNAS NV from a windows XP workstation. The total copy size was around 30 GB and I was very happy at the copy performance over my 100MB lan (much faster than the Drag-n-drop method).

I was happy until I repeated the identical robocopy command only a few minutes later... I noticed that a bunch of files got copied again. Since these had already been copied over once, they should not have been copied the second time.

I finally found that using the FFT option solved my problems. Using the FFT option tells Robocopy to assume FAT File Times (2-second granularity). After adding this option, I had no files recognized as 'newer' or 'older' that required re-synching on the ReadyNAS.


So now I always use this:
Robocopy \\source \\destination /e /z /fft

Links for Robocopy:
http://desktopengineer.com/story_20040426101005321?op=makePrintable&styleId=1010
http://www.ss64.com/nt/robocopy.html

Requires subscription:
http://emea.windowsitpro.com/Windows/Article/ArticleID/44324/44324.html

Snippet from http://www.screamingjungle.com/mt2/files/robocopy.pdf
Some third-party operating systems declare that their volumes are NTFS, but only implement FAT-style file times with a 2-second granularity. When copying to such a destination from a true NTFS volume, file time rounding may occur, along with unnecessary copying of file data in subsequent jobs. If you encounter this situation, you can use the /FFT (FAT File Times) switch to tell Robocopy to consider file times to be identical if they are within 2 seconds of each other, even though both source and destination appear to be NTFS. This eliminates unnecessary copying in this scenario.

Hope this helps ease someone else's frustration in the future...

-Brian
Last edited by brianadkins on Wed Apr 26, 2006 4:41 pm, edited 1 time in total.
brianadkins
ReadyNAS Newbie
 
Posts: 20
Joined: Sun Apr 16, 2006 9:11 am
Location: Apex, NC

Postby yoh-dah » Wed Apr 26, 2006 3:18 pm

Great tip. Thanks Brian.
User avatar
yoh-dah
Jedi Council Alumni
 
Posts: 13688
Joined: Fri Nov 19, 2004 1:21 am
Location: Borah-Borah
ReadyNAS: Pro

Postby ginooken » Fri Apr 28, 2006 5:40 am

Could this be linked to the copying of unmodified files with the backup scheduler in the ReadyNAS 600 ( to an external USB drive ) ?

Thanks for an answer

Gino
ginooken
Advanced ReadyNAS User
 
Posts: 118
Joined: Mon Aug 22, 2005 4:24 am
Location: Belgium

Postby brianadkins » Fri Apr 28, 2006 6:16 am

In my particular situation, this was a brand new ReadyNAS with no backups configured. This robocopy job was the first time I had put any files on the NAS. Also, I do not yet have an external USB drive hooked up.

FYI, I also have a Linksys NSLU2 "NAS" with an external USB drive. I ran into this exact same problem last year with this setup but was not able to find out the FFT solution.
brianadkins
ReadyNAS Newbie
 
Posts: 20
Joined: Sun Apr 16, 2006 9:11 am
Location: Apex, NC

Postby ptr727 » Thu May 04, 2006 10:36 am

I agree, great tip.

I just installed my NV and I was using RoboCopy to sync data from my SATA RAID5 device to my NV. I would have had the FFT problem on my next sync!

Enhancement request: Any chance the NV's filesystem could support high resolution (NTFS) timestamps?


Regards
Pieter
ptr727
ReadyNAS User
 
Posts: 70
Joined: Fri Apr 21, 2006 7:13 pm

Postby CharlesLaCour » Thu May 04, 2006 7:17 pm

I ran into the same issue.

That would be a good addition but I have a feeling that since the underlying file system is ext2/ext3 it will prevent having the same type of file timestamps that are supportd by NTFS. The standard ext2/ext3 inode has 3 time fields, last inode change, last file data change and deletion time. These timestamp fields have a resolution of 1 second. The only time field that maps from NTFS to ext2/ext3 is the file data modification time.

So, I would think that the underlying filesystem would have to be changed to allow for the timestamp compatability with NTFS.
Charles LaCour
clacour_AT_gmail.com
User avatar
CharlesLaCour
ReadyNAS Expert
 
Posts: 473
Joined: Thu May 04, 2006 6:45 pm
Location: Northern San Diego, California
ReadyNAS: Pro

Great tip

Postby subs » Fri Dec 14, 2007 5:27 am

For all the years I've lurked on boards, this posting prompted me to actually create a login and post. This was exactly want I needed to know to make my robocopy backup files work (better) - I say better because as someone else pointed out, it's not really NTFS in the ReadyNAS, so there are still some copy timestamp hiccups, and some other strange behaviors, but this might make it actually workable!

Thanks.
User avatar
subs
ReadyNAS Newbie
 
Posts: 27
Joined: Fri Dec 14, 2007 5:23 am

Postby Sageth » Fri Dec 14, 2007 10:22 am

For what it's worth, I found that just using /FFT wasn't enough. For about the past year, I've used the following switches on my backup script:

/Z /MIR /TBD /FFT /NP /XO


/Z is network restartable
/MIR does a mirror image (can delete all of your information. Test first!)
/TBD waits for the share to be available (I had problems with network name cannot be found).
/NP makes it so that it doesn't show the progress (cleaner logs)
/XO excludes older files.

So the full example is:

robocopy t:\scripts \\NAS\scripts /Z /MIR /TBD /FFT /NP /XO /log+:"C:\Documents and Settings\MyUser\Desktop\robocopylog.txt"


Just figured I'd post my solution in the event that /FFT isn't the end-all solution for your needs.

It's pretty quick too. I can recopy my entire NAS (~150GB, Raid 1) in under 30 mins. I'm not sure if I'm the only one, but Radiator 4 p1 was a lifesaver in terms of file copy. It's back to the speeds pre-R3-p6.
Sageth
ReadyNAS Newbie
 
Posts: 21
Joined: Sat Sep 15, 2007 12:51 pm
Location: NJ
ReadyNAS: Duo

Postby tahir » Sun Dec 16, 2007 7:32 am

Thanks for this, anyone got any idea what the difference between "*EXTRA File" and "New File" is?

I'm assuming "Newer" means that the source file is newer than the destination.
tahir
ReadyNAS Newbie
 
Posts: 11
Joined: Mon Dec 10, 2007 3:30 am

Postby Sageth » Wed Dec 19, 2007 6:49 am

"Extra File" I've only seen when using /MIR. This means that the file does NOT exist on your source, but DOES exist on your destination. As a result, the "Extra file" will be deleted from the destination.

"New File" means that it DOES exist on the source, but DOES NOT exist on the destination. As a result, the new file is copied to the destination.

Hope this helps.
Sageth
ReadyNAS Newbie
 
Posts: 21
Joined: Sat Sep 15, 2007 12:51 pm
Location: NJ
ReadyNAS: Duo

Postby tahir » Wed Dec 19, 2007 7:19 am

Many thanks.
tahir
ReadyNAS Newbie
 
Posts: 11
Joined: Mon Dec 10, 2007 3:30 am

Postby subs » Wed Dec 19, 2007 8:31 pm

Extra File appears in the log even if you don't have the MIR setting- which can be a bit unsettling to get used to.
User avatar
subs
ReadyNAS Newbie
 
Posts: 27
Joined: Fri Dec 14, 2007 5:23 am

Postby Lars » Wed Dec 19, 2007 9:40 pm

Thanks for a great set of tips!! :P
Noticed this problem with robocopy right after I got the Readynas, but haven't had time to soak my head into it..

Love to see my robocopy jobs working again!
User avatar
Lars
ReadyNAS Newbie
 
Posts: 49
Joined: Tue Dec 04, 2007 12:12 pm
Location: 127.0.0.1

Postby Lars » Wed Dec 19, 2007 10:10 pm

Sageth wrote:"Extra File" I've only seen when using /MIR. ...


'Extra file' + 'Extra dir' appears always in ordinary copyjobs for me(not using /MIR) - when target exists but not source as you described.
User avatar
Lars
ReadyNAS Newbie
 
Posts: 49
Joined: Tue Dec 04, 2007 12:12 pm
Location: 127.0.0.1

Re:

Postby JackoMiles » Thu Feb 16, 2012 7:51 am

Lars wrote:
Sageth wrote:"Extra File" I've only seen when using /MIR. ...


'Extra file' + 'Extra dir' appears always in ordinary copyjobs for me(not using /MIR) - when target exists but not source as you described.


Is it ok to delete the files or will it mess up?
JackoMiles
ReadyNAS Newbie
 
Posts: 1
Joined: Thu Feb 16, 2012 7:33 am
ReadyNAS: NVX


Return to User Submitted Tips



Who is online

Users browsing this forum: No registered users and 2 guests