rsync to an external usb drive
Hi everyone. I have a 1TB USB external drive, currently formatted as fat32. What I need to do is copy two folders and all their subfolders, totaling about 500GB, to that external drive. The USB drive will have to transfer back and forth between RHEL, Windows XP, and Mac OSX computers freely.
What format should I go with on the USB drive, FAT32 or NTFS? What rsync switches should I use? I know I don't want to use -a because I don't want any permissions restored. I'm guessing I'll have to run rsync a couple times to fully get all the files, so I need to be able to cancel an rsync, then have it pick back up where it left off, not start over and recopy every file again. Thanks in advance!!! |
Can OSX write to NTFS? (I've never used a Mac)
Linux support for NTFS is pretty mature these days - ask Google for how to set it up. NTFS is incalculably better than FAT32, so if all your platforms write to NTFS sufficiently well, use it. If you do go with FAT32, use --modify-window=1; see rsync's man page. |
Alucard, many thanks! I know FAT32 works on all three, plus it doesn't allow for permissions, so I think I'd rather stick with that to be honest. I have tried to do an rsync -r -t a couple times, and it looked like it just kept copying everything over and over again. Should i replace the -t with the --modify-windows=1 to solve that problem? or do I need both?
|
As I said, read the man page
Quote:
|
Quote:
|
I'm guessing that I still need to use both. Does anyone know for sure?
|
The two do different things. -t preserves timestamps on the rsynced copy. --modify-window=1 tells rsync to consider two timestamps equal if they differ by 1 second.
|
ok, thanks, I'll use both.
or I wonder if i should have just used --size-only to take the timestamp out of the equation altogether, but I don't think that's the best approach. |
the t and modify window options did it.
I have only a few folders at the root, then have things broken into other subfolders under that, with the results of ls | wc -l being around 10,000 or so, I seem to be good. think another part of my problem was related to fat32 and trying to jam too much into folders. |
All times are GMT -5. The time now is 01:04 AM. |