# sojus ## test if backups work ```shell cd /home/backup/repos/ borg list /system borg check -v /system ``` ## test if backups work from remote ```shell /etc/cron.d/borgbackup_system_create_sojus cat /var/log/borg/system_create_sojus.lastlog ``` ## retrieve files from backup ```shell cd /home/backup/repos/ borg mount /system /mnt/ ``` retrieve backup data from /mnt ```shell borg umount /mnt ``` ## create big backup locally ```shell cryptsetup luksOpen /dev/disk/by-id/ata--part1 ata--part1 zpool import zpool import lab zfs create -o com.sun:auto-snapshot=false lab/backup borg init -e none /lab/backup/ariane.fet.htu.tuwien.ac.at ./borg create --show-rc --verbose --stats backup@sojus:system::ariane-{now} /zv1/daten /zv1/fotos /zv1/homes zpool export lab cryptsetup luksClose ata--part1 sync hdparm -y /dev/disk/by-id/ata- hdparm -C /dev/disk/by-id/ata- ```