I have a 2 1.5TB drives containing numerous video, audio, documents etc that I would like to essentially mirror to 2 other drives for backup. I would like to do this using rsync (as it seems the most appropriate thing to use).
What command should I use to do so? Is there anything to be aware of when rsyncing NTFS partitioned drives/files?
EDIT: To clarify I am running NTFS formatted drives in Kubuntu 10.04 machine. I am rsync'ing the drives from here.
With rsync on unix, use --archive, and don't forget the --sparse and --hard-links options. I don't know if NTFS or the NTFS driver you use (ntfs-3g or kernel) supports sparse files and/or hardlinks, but it's good practice when using rsync for backups.
Also remember that --archive doesn't do --acls and --xattrs, but with NTFS, that doesn't matter.
I don't know how different rsync behaves on a Windows system, though.
To rsync between Linux ext4/xfs and windows ntfs mounts
OR
To rsync between two ntfs mounts :
If the intent is to back-up the contents to ntfs mount using rsync and only transfer delta to ntfs partition, don't use rsync with archive (-a) option.
rsync archive is equivalent to -rlptgoD and doesn't work with ntfs partition effectively.
Instead, try:
Example:
Where:
-r = recursive
--size-only = skip files that matches in size
Here are some more rsync hacks
If the NTFS partitions are mounted on a *NIX device, rsync is good. If you runing Windos, take a look at ROBOCOPY.EXE (included in free downloadable Resource Kit Tools, if your edition of Windows does not already have it).
is the basic comand, but you better read carefuly the documentation and make some tests before using it as a backup strategy
http://www.microsoft.com/downloads/details.aspx?familyid=c26efa36-98e0-4ee9-a7c5-98d0592d8c52&displaylang=en - Microsoft SyncToy 2.1 is a free application that synchronizes files and folders between locations.
I know I am probably late to the party, but I was having this issue, but fixed it with using new options on my
fstab
configuration file, and after a reboot it worked flawlessly!This is what my
/etc/fstab
looks like (noticenoatime
andbig_writes
):And the
resync
command I was using:I went from 20-50kb/s to 20-30mb/s!