diff --git a/.gitignore b/.gitignore index 89105e5..276e192 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,5 @@ resticClean.sh resticExcludes rsync.sh rsyncManifest -variables.sh -variablesAWS.sh \ No newline at end of file +backupsVariables.sh +backupsVariablesAWS.sh \ No newline at end of file diff --git a/setup.sh b/setup.sh index fec8349..e709c7a 100755 --- a/setup.sh +++ b/setup.sh @@ -11,17 +11,17 @@ cp ./templates/resticExcludesTemplate ./resticExcludes cp ./templates/resticTemplate.sh ./restic.sh cp ./templates/rsyncManifestTemplate ./rsyncManifest cp ./templates/rsyncTemplate.sh ./rsync.sh -cp ./templates/variablesAWSTemplate.sh ./variablesAWS.sh -cp ./templates/variablesTemplate.sh ./variables.sh +cp ./templates/backupsVariablesAWSTemplate.sh ./backupsVariablesAWS.sh +cp ./templates/backupsVariablesTemplate.sh ./backupsVariables.sh # Set scripts to executable chmod +x ./backups.sh chmod +x ./resticClean.sh chmod +x ./restic.sh chmod +x ./rsync.sh -chmod +x ./variablesAWS.sh -chmod +x ./variables.sh +chmod +x ./backupsVariablesAWS.sh +chmod +x ./backupsVariables.sh # Set variable files to r/w by owner only -chmod 600 ./variablesAWS.sh -chmod 600 ./variables.sh \ No newline at end of file +chmod 600 ./backupsVariablesAWS.sh +chmod 600 ./backupsVariables.sh \ No newline at end of file diff --git a/templates/variablesAWSTemplate.sh b/templates/backupsVariablesAWSTemplate.sh similarity index 100% rename from templates/variablesAWSTemplate.sh rename to templates/backupsVariablesAWSTemplate.sh diff --git a/templates/variablesTemplate.sh b/templates/backupsVariablesTemplate.sh similarity index 96% rename from templates/variablesTemplate.sh rename to templates/backupsVariablesTemplate.sh index d614645..5ea1342 100644 --- a/templates/variablesTemplate.sh +++ b/templates/backupsVariablesTemplate.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='/' +# readonly RSYNC_SOURCE='/home' # readonly RSYNC_DEST='/path/to/dir/to/backup/to' # readonly RSYNC_RETENTION_KEEP_LAST='7' @@ -100,7 +100,7 @@ readonly LOG_RETENTION='30' ## Recommendation is to leave the first tag be, and configure the second # readonly RESTIC_TAG_01="${HOSTNAME}" -# readonly RESTIC_TAG_02='TAG-02' +# readonly RESTIC_TAG_02='home' ## Leave this var be # readonly RESTIC_EXCLUDES="${SCRIPT_DIR}/resticExcludes" \ No newline at end of file