Move related files into subdirs
This commit is contained in:
parent
2a20f18c78
commit
f543afed65
8 changed files with 99 additions and 0 deletions
24
rsync_restore.txt
Normal file
24
rsync_restore.txt
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# 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/
|
||||
Loading…
Add table
Add a link
Reference in a new issue