Rsync
Jump to navigation
Jump to search
Common rsync commands
Copy with all dot-files included
rsync -av --include='.*' . /opt/nmsApi_backup/
Normal rsync
rsync -arHS <src> <dest>
rsync over ssh with ignore existing
rsync -arHS --ignore-existing -e "ssh -i /home/chubbard/.ssh/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" chubbard@radio01:/usr/lib/arm-linux-gnueabihf/* . rsync -arHS --ignore-existing -e "ssh -i /home/chubbard/.ssh/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" chubbard@radio01:/usr/lib/* .