shell-scripts/rsync_restore.txt
2022-03-27 21:12:36 -05:00

24 lines
922 B
Text

# rsync restore
from $backup_dir_mount/tracey_home to original locations in /home/tracey
backup_dir_mount='/data/LinuxBack'
rsync -aAXv --delete --exclude="lost+found" "$backup_dir_mount/tracey_home" /home/tracey
test with just one directory to make sure it goes to right place
backup_dir_mount='/data/LinuxBack'
rsync -aAXv --exclude="lost+found" "$backup_dir_mount/tracey_home/Applications" /home/tracey/Applications
-a - archive mode.
-A - preserve Access Control List.
-X - preserve extended attributes.
backup_dir_mount='/data/LinuxBack'
sudo rsync -aAXv --exclude="lost+found" "$backup_dir_mount/var" /var/lib/libvirt/images
rsync -aAXv --exclude="lost+found" "$backup_dir_mount/tracey_home/Applications" /home/tracey/Applications
sudo rsync -aAXv --exclude="lost+found" "$backup_dir_mount/var/images" /var/lib/libvirt/
sudo rsync -aAXv --exclude="lost+found" "$backup_dir_mount/var/qemu" /var/lib/libvirt/