Add a tag to the gwyn backups

This commit is contained in:
Andreas Zweili 2022-08-23 21:28:37 +02:00
parent 4c900d7371
commit c5ff867d1b
1 changed files with 4 additions and 2 deletions

View File

@ -64,12 +64,14 @@ in
};
script = ''
${pkgs.restic}/bin/restic \
--exclude-file=${inputs.self}/modules/restic/excludes.txt \
backup /home/${custom.username} \
--exclude-file=${inputs.self}/modules/restic/excludes.txt \
--tag home-dir \
backup /home/${custom.username}
${pkgs.restic}/bin/restic \
forget \
--host ${config.networking.hostName} \
--tag home-dir \
--keep-hourly 25 \
--keep-daily 7 \
--keep-weekly 5 \