tasks/backup-archive: update to new repo and description

This commit is contained in:
Gabriel Arazas 2022-07-06 06:43:09 +08:00
parent 3b32e9d7b7
commit dcb13fd3ef

View File

@ -1,4 +1,4 @@
# This is my external hard drive with the backup setup with borg. # It's a setup for my backup.
{ config, options, lib, pkgs, ... }: { config, options, lib, pkgs, ... }:
let let
@ -44,7 +44,7 @@ in {
assertions = [{ assertions = [{
assertion = config.profiles.agenix.enable; assertion = config.profiles.agenix.enable;
message = '' message = ''
Agenix module is not enabled. This is for the borgmatic configuration Agenix module is not enabled. This is needed for the borg configuration
we're using. we're using.
''; '';
}]; }];
@ -79,7 +79,6 @@ in {
config.age.secrets.borg-patterns.path config.age.secrets.borg-patterns.path
]; ];
} // { } // {
doInit = true;
repo = "/archives/backups"; repo = "/archives/backups";
startAt = "04/5:00:00"; startAt = "04/5:00:00";
}; };
@ -99,8 +98,7 @@ in {
remote-borgbase = borgJobCommonSetting { remote-borgbase = borgJobCommonSetting {
patterns = [ config.age.secrets.borg-patterns.path ]; patterns = [ config.age.secrets.borg-patterns.path ];
} // { } // {
doInit = false; repo = "r6o30viv@r6o30viv.repo.borgbase.com:repo";
repo = "m9s7d92s@m9s7d92s.repo.borgbase.com:repo";
startAt = "daily"; startAt = "daily";
environment.BORG_RSH = "ssh -i ${config.age.secrets.borg-ssh-key.path}"; environment.BORG_RSH = "ssh -i ${config.age.secrets.borg-ssh-key.path}";
}; };