Rsync: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=== Common rsync commands === == Copy with all dot-files included == <pre> rsync -av --include='.*' . /opt/nmsApi_backup/ </pre> == Normal rsync == <pre> rsync -arHS <src> <dest> </pre> Category:Bash") |
m (→Normal rsync) |
||
Line 9: | Line 9: | ||
<pre> | <pre> | ||
rsync -arHS <src> <dest> | rsync -arHS <src> <dest> | ||
</pre> | |||
== rsync over ssh with ignore existing == | |||
<pre> | |||
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/* . | |||
</pre> | </pre> | ||
[[Category:Bash]] | [[Category:Bash]] |
Revision as of 17:50, 15 September 2023
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/* .