Restic - rychlý a bezpečný zálohovací program
-
Restic - rychlý a bezpečný zálohovací program
Na Arch Linuxu je balíček zvaný restic nainstalovaný z oficiálních komunitních repozitářů.
$ pacman -S restic restic init --repo ~/nfs/homes/box/backup/arch-main/ restic init --repo ~/nfs/homes/box/backup/mx/ restic init --repo ~/nfs/homes/box/backup/arch1/ sudo restic -r ~/nfs/homes/box/backup/arch-main backup --one-file-system --exclude-caches --exclude={/dev,/media,/mnt,/proc,/run,/sys,/tmp,/var/tmp,/home/box/Downloads,/home/box/WFD-REPOSITORY,/home/box/AOS-AUTO,/home/box/SynologyDrive,/home/box/OneCloud,/home/box/git,/home/box/Videos,/home/box/Pictures,/home/box/nfs,/home/box/Music,/home/box/ide} --verbose / sudo restic -r ~/nfs/homes/box/backup/mx backup --one-file-system --exclude-caches --exclude={/dev,/media,/mnt,/proc,/run,/sys,/tmp,/var/tmp,/home/box/Downloads,/home/box/WFD-REPOSITORY,/home/box/AOS-AUTO,/home/box/SynologyDrive,/home/box/OneCloud,/home/box/git,/home/box/Videos,/home/box/Pictures,/home/box/nfs,/home/box/Music,/home/box/ide} --verbose / sudo restic -r ~/nfs/homes/box/backup/arch1 backup --one-file-system --exclude-caches --exclude={/dev,/media,/mnt,/proc,/run,/sys,/tmp,/var/tmp,/home/box/Downloads,/home/box/nfs} --verbose / restic -r ~/nfs/homes/box/backup/arch-main check restic -r ~/nfs/homes/box/backup/arch-main snapshots restic -r /srv/restic-repo copy --repo2 /srv/restic-repo-copy #Full restore: restic -r ~/nfs/homes/box/backup/arch-main restore latest --target /tmp/restore --path "/" --host r7arch #Restore specific file/folder restic -r /srv/restic-repo restore 79766175 --target /tmp/restore-work --include /work/foo #Dump specific file to pipe restic -r /srv/restic-repo dump 098db9d5 production.sql | mysql #Mount snapshot $ mkdir /mnt/restic $ restic -r ~/nfs/homes/box/backup/arch-main mount /mnt/restic #Deleting and pruning restic -r /srv/restic-repo forget bdbd3439 restic -r /srv/restic-repo prune #Best deleting for me restic forget --keep-last 3 --prune