# HG changeset patch # User aldrich@ssdt-ohio.org # Date 1572534912 -3600 # Node ID 4285b8a2762ef69bd308dea1ef2865ab01536e70 # Parent 2cb1093f9aef7570e6c3017be42d723b0e123c64 making changes to remote backup scripts to account for IRN - tweaks diff -r 2cb1093f9aef -r 4285b8a2762e scripts/remote-backup-all.sh --- a/scripts/remote-backup-all.sh Thu Oct 31 14:40:02 2019 +0100 +++ b/scripts/remote-backup-all.sh Thu Oct 31 16:15:12 2019 +0100 @@ -73,15 +73,15 @@ echo "ERROR: $(tail ${backupFile1})" echo "Error: empty database" #else We still gzip the backup file + fi gzip ${backupFile1} echo "completed backup of $container1 for $project to ${backupFile1}" - fi ##### -#uspsdb is being used +#uspsdb echo "starting backup of $container2 for $project" docker-compose exec -T $container2 sh -c "gosu postgres pg_dump -Cc --if-exists --dbname=$container2 ; (exit $?) " > ${backupFile2} @@ -91,11 +91,12 @@ echo "ERROR: $(tail ${backupFile2})" echo "Error: empty database" #else We still gzip the backup file + fi gzip ${backupFile2} echo "completed backup of $container2 for $project to ${backupFile2}" - fi + ####### @@ -112,10 +113,10 @@ target=`echo $remoteTarget | sed -e 's/.*://'` + ssh $host mkdir -p $target/$project - -#Create remote directory +#SCP files # scp ${backupFile1}.gz ${backupFile2}.gz ${backupFile3} $userName@$remoteTarget/$project diff -r 2cb1093f9aef -r 4285b8a2762e scripts/remote-backup.sh --- a/scripts/remote-backup.sh Thu Oct 31 14:40:02 2019 +0100 +++ b/scripts/remote-backup.sh Thu Oct 31 16:15:12 2019 +0100 @@ -85,7 +85,7 @@ ssh $host mkdir -p $target/$project -#Create remote directory +#scp file # scp ${backupFile}.gz ${backupFile2} $userName@$remoteTarget/$project