Rsync

From Wasya Wiki
Revision as of 13:28, 17 May 2023 by Piousbox (Talk | contribs)

Jump to: navigation, search

From: https://superuser.com/questions/307541/copy-entire-file-system-hierarchy-from-one-drive-to-another

 rsync -avxHAWX --numeric-ids --progress / mnt/ > ~/rsync.out
 rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress /root/bigfile.txt 198.211.117.129:/root/

The options are:


-a  : all files, with permissions, etc..
-v  : verbose, mention files
-x  : stay on one file system
-H  : preserve hard links (not included with -a)
-A  : preserve ACLs/permissions (not included with -a)
-X  : preserve extended attributes (not included with -a)
-W  : whole files