mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 12:40:44 +03:00
archivesta fix
This commit is contained in:
@@ -7,16 +7,13 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
systemd = {
|
systemd = {
|
||||||
services.rsync-archive = {
|
services.rsync-archive = { # Archivesta
|
||||||
# Make copy of files
|
# Make copy of files
|
||||||
description = "Backup data using rsync";
|
description = "Backup data using rsync";
|
||||||
#after = [ ];
|
#after = [ ];
|
||||||
requisite = [ "mnt-archive.mount" ]; # hard-code
|
requisite = [ "mnt-archive.mount" ]; # hard-code
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.rsync}/bin/rsync -rtv --delete ${xlib.dirs.services-folder}/immich/ ${xlib.dirs.archive-drive}/Services/immich/
|
${pkgs.rsync}/bin/rsync -rtv --delete ${xlib.dirs.services-folder}/ ${xlib.dirs.archive-drive}/Services/
|
||||||
${pkgs.rsync}/bin/rsync -rtv --delete ${xlib.dirs.services-folder}/nextcloud/ ${xlib.dirs.archive-drive}/Services/nextcloud/
|
|
||||||
${pkgs.rsync}/bin/rsync -rtv --delete ${xlib.dirs.services-folder}/node-red/ ${xlib.dirs.archive-drive}/Services/node-red/
|
|
||||||
${pkgs.rsync}/bin/rsync -rtv --delete ${xlib.dirs.services-folder}/uptime-kuma/ ${xlib.dirs.archive-drive}/Services/node-red/
|
|
||||||
'';
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
|
|||||||
Reference in New Issue
Block a user