Browse Source

updated readme

master
Holger Frey 5 years ago
parent
commit
09146ec5f8
  1. 4
      README.md

4
README.md

@ -26,16 +26,20 @@ https://wiki.cpi.imtek.uni-freiburg.de/CPIvServerDocumentation/ElabOnZfs
## restoring backups ## ## restoring backups ##
1. copy a snapshot backup to the NAS 1. copy a snapshot backup to the NAS
``` ```
cd /mnt/Datenspeicher/snap-backup-dataset/temporary-backups/ cd /mnt/Datenspeicher/snap-backup-dataset/temporary-backups/
scp -i ../backup_key zfs_snap_backup@etha.cpi.imtek.uni-freiburg.de:~/zfs-backups/<backup-file> tmp-backup-file.gz scp -i ../backup_key zfs_snap_backup@etha.cpi.imtek.uni-freiburg.de:~/zfs-backups/<backup-file> tmp-backup-file.gz
``` ```
2. unzip the backup file and restore it into a dataset 2. unzip the backup file and restore it into a dataset
``` ```
gunzip -c tmep-backup-file.gz | zfs receive -F Datenspeicher/test-backup gunzip -c tmep-backup-file.gz | zfs receive -F Datenspeicher/test-backup
``` ```
3. remove the (local) backup file 3. remove the (local) backup file
``` ```
rm tmp-backup-file.gz rm tmp-backup-file.gz
``` ```

Loading…
Cancel
Save