containers/backup-target: init

This container is used as a backup target for backing up the other
container volumes.
This commit is contained in:
steveej 2021-02-09 11:44:44 +01:00
parent 2d2afedf29
commit 6eb4e96b09
4 changed files with 77 additions and 10 deletions

View file

@ -62,8 +62,8 @@ in {
script = let
btrbkConf = pkgs.writeText "cfg" ''
timestamp_format long
ssh_identity ${passwords.storage.homeChBackup.keyPath}
ssh_user ${passwords.storage.homeChBackup.user}
ssh_identity ${passwords.storage.backupTarget.keyPath}
ssh_user ${passwords.storage.backupTarget.user}
ssh_compression no
backend_remote btrfs-progs-sudo
compat_remote busybox
@ -75,7 +75,7 @@ in {
target_preserve 7d 4w 12m *y
volume ${subvolumeParentDir}
target ${passwords.storage.homeChBackup.target}/container-volumes/${targetPathSuffix}
target ${passwords.storage.backupTarget.target}/container-volumes/${targetPathSuffix}
${builtins.foldl' (sum: elem: sum + " subvolume " + elem + "\n") "" subvolumes}
'';
in ''