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

View File

@@ -95,7 +95,7 @@ mv /var/log/* /ssd/var/log/
zfs set mountpoint=/var/log ssd/var/log
mv /var/lib/lxc/* /ssd/var/lxc/
zfs set mountpoint=/var/lib/lxc ssd/var/lxc
zfs create -o com.sun:auto-snapshot=false zv1/sojus
zfs create -o com.sun:auto-snapshot=false zv1/laika
zfs create -o com.sun:auto-snapshot=false zv1/daten/Scans
zfs create -o setuid=off -o zv1/zyklon
chown 997:996 /zv1/zyklon
@@ -103,7 +103,7 @@ chown 997:996 /zv1/zyklon
### Set dataset quota
```shell
zfs set quota=1T zv1/homes zv1/daten zv1/fotos
zfs set quota=3T zv1/sojus
zfs set quota=3T zv1/laika
zfs set quota=5G zv1/daten/Scans
```
### If intend using ACL someday

View File

@@ -1,4 +1,4 @@
# sojus
# laika
## test if backups work
```shell
@@ -10,7 +10,7 @@ borg check -v <repo>/system
## test if backups work from remote
```shell
/etc/borg/system_create_<pool>.sh
cat /var/log/borg/system_create_sojus.lastlog
cat /var/log/borg/system_create_laika.lastlog
```
## retrieve files from backup
@@ -30,7 +30,7 @@ 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
./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

View File

@@ -25,15 +25,6 @@ lxc:
- lxc.network.1.ipv4.gateway = 128.131.95.1
- lxc.pts = 6
- name: laika
revision: "01"
template: debian
config:
- lxc.network.type = veth
- lxc.network.hwaddr = 1c:bd:b9:7f:fe:a4
- lxc.network.link = br1
- lxc.network.flags = up
- name: betam
revision: "01"
template: debian
@@ -66,7 +57,7 @@ lxc:
- lxc.pts = 6
- lxc.mount.entry = /zv1/daten/Scans /var/lib/lxc/lxc-progress-01/rootfs/mnt/scans none bind,create=dir 0 0
- name: sojus
- name: laika
revision: "01"
template: voidlinux
config:
@@ -74,8 +65,16 @@ lxc:
- lxc.network.hwaddr = 2e:6d:b6:07:17:01
- lxc.network.link = br1
- lxc.network.flags = up
- lxc.network.1.type = veth
- lxc.network.1.hwaddr = 00:15:c5:5d:78:0e
- lxc.network.1.link = br0
- lxc.network.1.flags = up
- lxc.network.1.ipv4 = 128.131.95.204/24
- lxc.network.1.ipv4.gateway = 128.131.95.1
- lxc.pts = 6
- lxc.mount.entry = /zv1/sojus /var/lib/lxc/lxc-sojus-01/rootfs/home/backup/repos none bind,create=dir 0 0
- lxc.mount.entry = /zv1/laika /var/lib/lxc/lxc-laika-01/rootfs/home/backup/repos none bind,create=dir 0 0
- name: proteus
revision: "01"

View File

@@ -7,7 +7,7 @@ borgbackup_binary_uri: "https://borg.bauerj.eu/borg-{{ borgbackup_binary_version
borgbackup_encryption_mode: "none"
borgbackup_client_backup_server: sojus
borgbackup_client_backup_server: laika
borgbackup_create_jobs:
- name: system

View File

@@ -6,7 +6,7 @@ borgbackup_binary_platform: "borg-linux32"
borgbackup_encryption_mode: "none"
borgbackup_client_backup_server: sojus
borgbackup_client_backup_server: laika
borgbackup_create_jobs:
- name: system

View File

@@ -1,2 +1,7 @@
inventory_hostname: laika.fet.htu.tuwien.ac.at
inventory_hostname_short: laika
borgbackup_install_from_repo: True
borgbackup_binary: "/usr/bin/borg"
borgbackup_encryption_mode: "none"

View File

@@ -5,7 +5,7 @@ borgbackup_install_from_repo: False
borgbackup_encryption_mode: "none"
borgbackup_client_backup_server: sojus
borgbackup_client_backup_server: laika
borgbackup_create_jobs:
- name: system

View File

@@ -5,7 +5,7 @@ borgbackup_install_from_repo: False
borgbackup_encryption_mode: "none"
borgbackup_client_backup_server: sojus
borgbackup_client_backup_server: laika
borgbackup_create_jobs:
- name: system

View File

@@ -1,7 +0,0 @@
inventory_hostname: sojus.fet.htu.tuwien.ac.at
inventory_hostname_short: sojus
borgbackup_install_from_repo: True
borgbackup_binary: "/usr/bin/borg"
borgbackup_encryption_mode: "none"

View File

@@ -5,14 +5,13 @@ all:
ariane:
fet_lxc_debian:
hosts:
laika:
betam:
proteus:
fet_lxc_void:
hosts:
sputnik:
zyklon:
sojus:
laika:
progress:
fet_qemu:
hosts:

View File

@@ -39,7 +39,7 @@
roles:
- gitea
- hosts: sojus
- hosts: laika
roles:
- borg_server