Replace sojus by laika

This commit is contained in:
Daniel A. Maierhofer
2019-01-26 02:42:52 +01:00
parent a08e30c4e9
commit b1b82ce8f7
11 changed files with 26 additions and 30 deletions

39
doc/laika.md Normal file
View File

@@ -0,0 +1,39 @@
# laika
## test if backups work
```shell
cd /home/backup/repos/
borg list <repo>/system
borg check -v <repo>/system
```
## test if backups work from remote
```shell
/etc/borg/system_create_<pool>.sh
cat /var/log/borg/system_create_laika.lastlog
```
## retrieve files from backup
```shell
cd /home/backup/repos/
borg mount <repo>/system /mnt/
```
retrieve backup data from /mnt
```shell
borg umount /mnt
```
## create big backup locally
```shell
cryptsetup luksOpen /dev/disk/by-id/ata-<ID>-part1 ata-<ID>-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@laika:system::ariane-{now} /zv1/daten /zv1/fotos /zv1/homes
zpool export lab
cryptsetup luksClose ata-<ID>-part1
sync
hdparm -y /dev/disk/by-id/ata-
hdparm -C /dev/disk/by-id/ata-
```