Drive Backup Script (rsync): Difference between revisions

From Federal Burro of Information
Jump to navigationJump to search
(New page: #!/bin/sh time /usr/bin/rsync -avzr /home/david/ /mnt/F/backup/nex/home/david --stats time /usr/bin/rsync -avzr /etc/ /mnt/F/backup/nex/etc --stats time /usr/bin/rsync -avzr /root/ /m...)
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
  time /usr/bin/rsync -avzr /etc/ /mnt/F/backup/nex/etc --stats
  time /usr/bin/rsync -avzr /etc/ /mnt/F/backup/nex/etc --stats
  time /usr/bin/rsync -avzr /root/ /mnt/F/backup/nex/root --stats
  time /usr/bin/rsync -avzr /root/ /mnt/F/backup/nex/root --stats
a - archive , preserve file meta data, date, ownership, etc
v - verbose tell all
z - use compression zip
r - recursive
https://gist.github.com/KartikTalwar/4393116
Original
rsync -aHAXxv --numeric-ids --delete --progress -e "ssh -T -c arcfour -o Compression=no -x" user@<source>:<source_dir> <dest_dir>
Flip
rsync -aHAXxv --numeric-ids --delete --progress -e "ssh -T -c arcfour -o Compression=no -x" [source_dir] [dest_host:/dest_dir]
a archive
H preserve hard links
A ??
X ??
x one file system
v verbose
[[Category:Script]]

Latest revision as of 14:14, 10 July 2020

#!/bin/sh
time /usr/bin/rsync -avzr /home/david/ /mnt/F/backup/nex/home/david --stats
time /usr/bin/rsync -avzr /etc/ /mnt/F/backup/nex/etc --stats
time /usr/bin/rsync -avzr /root/ /mnt/F/backup/nex/root --stats
a - archive , preserve file meta data, date, ownership, etc
v - verbose tell all
z - use compression zip
r - recursive

https://gist.github.com/KartikTalwar/4393116

Original

rsync -aHAXxv --numeric-ids --delete --progress -e "ssh -T -c arcfour -o Compression=no -x" user@<source>:<source_dir> <dest_dir>

Flip

rsync -aHAXxv --numeric-ids --delete --progress -e "ssh -T -c arcfour -o Compression=no -x" [source_dir] [dest_host:/dest_dir]
a archive
H preserve hard links
A ??
X ??
x one file system
v verbose