From 354265a7e27bcee6128b4064692680981198feb6 Mon Sep 17 00:00:00 2001 From: capntack Date: Sat, 23 Mar 2024 13:35:29 -0500 Subject: [PATCH] Updated some default paths and rules for restic and rsync --- templates/rsyncManifestTemplate | 5 +++++ templates/variablesTemplate.sh | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/rsyncManifestTemplate b/templates/rsyncManifestTemplate index a52c90c..5bb6661 100644 --- a/templates/rsyncManifestTemplate +++ b/templates/rsyncManifestTemplate @@ -2,5 +2,10 @@ + */ # Second, exclude anything from within the next section that you don't want # Then, include the dirs/paths/files you want to backup ++ /home/*/bin/*** ++ /home/*/.local/bin/*** ++ /home/*/*shrc ++ /home/*/*history ++ **/docker-compose.yml # Finally, exclude everything not explicitely included above - * \ No newline at end of file diff --git a/templates/variablesTemplate.sh b/templates/variablesTemplate.sh index 9c5beef..d614645 100644 --- a/templates/variablesTemplate.sh +++ b/templates/variablesTemplate.sh @@ -58,7 +58,7 @@ readonly LOG_RETENTION='30' ## Only uncomment and set these if RSYNC_BACKUP further above is set to 'yes' ## Set these vars -# readonly RSYNC_SOURCE='/path/to/dir/to/backup' +# readonly RSYNC_SOURCE='/' # readonly RSYNC_DEST='/path/to/dir/to/backup/to' # readonly RSYNC_RETENTION_KEEP_LAST='7' @@ -85,7 +85,7 @@ readonly LOG_RETENTION='30' ## Set these for all restic configurations # export RESTIC_REPOSITORY='/path/to/repo' # export RESTIC_PASSWORD='PASSWORD' -# readonly RESTIC_SOURCE='/path/to/dir/to/backup' +# readonly RESTIC_SOURCE='/home' ## RESTIC_CALENDAR_RETENTION must be set to 'yes' for these ## Remove readonly if LAN_AND_AWS_RESTIC is set to 'yes' and you want different retention policies