From 5756c6e8dde5b6a05bacc58556ff614521739d3a Mon Sep 17 00:00:00 2001 From: capntack Date: Fri, 22 Mar 2024 20:17:57 -0500 Subject: [PATCH] Updated to automate more of the setup --- setup.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup.sh b/setup.sh index 4560c5c..fec8349 100755 --- a/setup.sh +++ b/setup.sh @@ -1,5 +1,10 @@ #!/bin/bash +# Install prereqs +apt install rsync restic moreutils +restic self-update + +# Copy templates to base directory and rename cp ./templates/backupsTemplate.sh ./backups.sh cp ./templates/resticCleanTemplate.sh ./resticClean.sh cp ./templates/resticExcludesTemplate ./resticExcludes @@ -8,11 +13,15 @@ cp ./templates/rsyncManifestTemplate ./rsyncManifest cp ./templates/rsyncTemplate.sh ./rsync.sh cp ./templates/variablesAWSTemplate.sh ./variablesAWS.sh cp ./templates/variablesTemplate.sh ./variables.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 + +# Set variable files to r/w by owner only chmod 600 ./variablesAWS.sh chmod 600 ./variables.sh \ No newline at end of file