What options should I use on rsync to backup a NTFS disk?

1

I'm trying to backup my NTFS Windows disk to another NTFS disk. Using rsync on Cygwin, what options should I use so I don't have any permission problems in the future? I don't plan on restoring the entire OS, just my personal user files and preferences after I change OS.

rsync --verbose --acls --archive --hard-links --delete "/cygdrive/c" "/cygdrive/w/my-backup/"

user168623

Posted 2016-09-05T04:22:22.480

Reputation:

1Is there a reason you can't use robocopy? robocopy c:\ w:\my-backup /s/e /copyall /a+:a /dcopy:t – Aaron Mason – 2016-09-05T04:28:03.880

1

You might also consider using parameters -AXogt but look over http://linux.die.net/man/1/rsync for full detail and to ensure you don't overlap, etc. I agree... Robocopy is a good tool to use with Windows for this type of task.

– Pimp Juice IT – 2016-09-05T04:46:34.570

1I agree on robocopy. It is much faster for local usage than rsync specially with /MT option. – matzeri – 2016-09-05T09:55:44.560

@AaronMason I have an entire workflow set up on bash. @ matzeri How is robocopy faster if rsync already max out my throughput? Did you tested it both at the same pc and same job? It's so fast for me that any speed gains would be negligible. Maybe you're talking about file comparison times. But thanks for the suggestion! – None – 2016-09-05T15:09:53.050

@PIMP_JUICE_IT that's the thing, my script already "works", and even if I add your "Xog" extra flags I don't really know what's going on. The permissions (file properties) from what I can tell are the correct ones but I don't really know how NTFS works under the hood. When I have a new user (new ID) and a new disk, is it going to work without a problem? My tests on a VM says it will but the intent of my thread is to find edge cases or for somebody to point out something I may be be missing. – None – 2016-09-05T23:39:04.800

1

If it's just a small VM & for local files only & for local user accounts, then it should be rather easy to test with a test VM & then create a new dummy account & see what you get. I normally control NTFS security with security groups & as long as the group's SID is tied to the ACLS, then any user account (including new ones) will be allowed to access the data per the ACL security configuration. Look over http://superuser.com/questions/69620/rsync-file-permissions-on-windows here for potential answer but it looks like you should include --p as well... see ==> http://linux.die.net/man/1/rsync

– Pimp Juice IT – 2016-09-06T00:31:43.693

No answers