Move the excludes.txt to a general directory
This commit is contained in:
parent
6ad3b75139
commit
8bb710bfd6
|
@ -83,7 +83,7 @@ in
|
||||||
onFailure = [ "unit-status-telegram@%n.service" ];
|
onFailure = [ "unit-status-telegram@%n.service" ];
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.restic}/bin/restic \
|
${pkgs.restic}/bin/restic \
|
||||||
--exclude-file=${custom.inputs.self}/modules/restic/excludes.txt \
|
--exclude-file=${custom.inputs.self}/modules/restic-client/excludes.txt \
|
||||||
--tag home-dir \
|
--tag home-dir \
|
||||||
backup /home/${custom.username}
|
backup /home/${custom.username}
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
onFailure = [ "unit-status-telegram@%n.service" ];
|
onFailure = [ "unit-status-telegram@%n.service" ];
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.restic}/bin/restic backup \
|
${pkgs.restic}/bin/restic backup \
|
||||||
--exclude-file=${custom.inputs.self}/modules/restic/excludes.txt \
|
--exclude-file=${custom.inputs.self}/modules/restic-client/excludes.txt \
|
||||||
--tag ${tag} ${path}
|
--tag ${tag} ${path}
|
||||||
|
|
||||||
${pkgs.mariadb}/bin/mariabackup --backup --stream=xbstream | \
|
${pkgs.mariadb}/bin/mariabackup --backup --stream=xbstream | \
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
onFailure = [ "unit-status-telegram@%n.service" ];
|
onFailure = [ "unit-status-telegram@%n.service" ];
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.restic}/bin/restic backup \
|
${pkgs.restic}/bin/restic backup \
|
||||||
--exclude-file=${custom.inputs.self}/modules/restic/excludes.txt \
|
--exclude-file=${custom.inputs.self}/modules/restic-client/excludes.txt \
|
||||||
--tag ${tag} ${path}
|
--tag ${tag} ${path}
|
||||||
|
|
||||||
${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dumpall | \
|
${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dumpall | \
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
onFailure = [ "unit-status-telegram@%n.service" ];
|
onFailure = [ "unit-status-telegram@%n.service" ];
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.restic}/bin/restic backup \
|
${pkgs.restic}/bin/restic backup \
|
||||||
--exclude-file=${custom.inputs.self}/modules/restic/excludes.txt \
|
--exclude-file=${custom.inputs.self}/modules/restic-client/excludes.txt \
|
||||||
--tag ${tag} ${path}
|
--tag ${tag} ${path}
|
||||||
|
|
||||||
${pkgs.restic}/bin/restic forget \
|
${pkgs.restic}/bin/restic forget \
|
||||||
|
|
Loading…
Reference in New Issue