From e89a705b65200264416666b5f9b4335a3cc98e38 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Wed, 15 Nov 2023 20:40:01 -0800 Subject: [PATCH] excluded temp dirs --- hosts/Alaska/modules/backup_script.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/Alaska/modules/backup_script.nix b/hosts/Alaska/modules/backup_script.nix index 6fb1dae..fe4cb41 100644 --- a/hosts/Alaska/modules/backup_script.nix +++ b/hosts/Alaska/modules/backup_script.nix @@ -119,7 +119,8 @@ in echo "Backing up the nextcloud files" # -a archive | -v verbose rsync -av ${builtins.toString cfg.nextcloud.root_dir} \ - ${builtins.toString cfg.tmp_mount_point}/nextcloud + ${builtins.toString cfg.tmp_mount_point}/nextcloud \ + --exclude '*/appdata_*' --exclude "*/files_trashbin/*" --exclude "*/files_versions/*" echo "Get nextcloud out of maintenance mode so that normal operations can resume" nextcloud-occ maintenance:mode --off