diff scripts/remote-backup-all.sh @ 317:146c0c263cf9

adding project to remote backup scripts target
author aldrich@ssdt-ohio.org
date Wed, 30 Oct 2019 13:28:14 +0100
parents d78b45c28205
children c61524abdfd6
line wrap: on
line diff
--- a/scripts/remote-backup-all.sh	Tue Oct 29 16:45:31 2019 +0100
+++ b/scripts/remote-backup-all.sh	Wed Oct 30 13:28:14 2019 +0100
@@ -92,17 +92,17 @@
 echo "starting backup of current directory for $project"
 
 #tar -czf ${backupFile3} . --exclude=./backup
-tar --exclude=./backup -czf ${backupFile3} . --exclude=./backup
+tar --exclude=./backup -czf ${backupFile3} . 
 
 echo "completed backup of all files for $project to ${backupFile3}"
 
 
 #
 #
-scp ${backupFile1}.gz  ${backupFile2}.gz ${backupFile3} $userName@$remoteTarget
+scp ${backupFile1}.gz  ${backupFile2}.gz ${backupFile3} $userName@$remoteTarget/$project
 
 echo " "
 
-echo "completed sending ${backupFile1}.gz, ${backupFile2}.gz, and ${backupFile3} to ${remoteTarget} as user $userName"
+echo "completed sending ${backupFile1}.gz, ${backupFile2}.gz, and ${backupFile3} to ${remoteTarget}/$(project) as user $userName"