ask-sheldon.com
Sync files with rsync - Bravehartk2's Blog
To sync filesystems over ssh (with port): $> rsync -azvu --exclude-from='./exclude.txt' -e 'ssh -p 26 -o StrictHostKeyChecking=no' user@host:/PATH/TOREMOTE/FILE/ORFOLDER/ /PATH/TO/LOKAL/FILEORFOLDER; Useful parameters -o StrictHostKeyChecking=no – tells the the source host to accept the ssh-key from the destination host –exclude-from=’./exclude.txt’ – in exclude.txt each line specifies a path to ignore through synchronization –dry-run – only simulate what would have been […]
Sheldon