# HG changeset patch # User aldrich@ssdt-ohio.org # Date 1572438494 -3600 # Node ID 146c0c263cf9ecba243ef5c6159d183d119f7331 # Parent 83f30dc7e9fb368a5491280f4ab732280e23c984 adding project to remote backup scripts target diff -r 83f30dc7e9fb -r 146c0c263cf9 scripts/remote-backup-all.sh --- 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" diff -r 83f30dc7e9fb -r 146c0c263cf9 scripts/remote-backup.sh --- a/scripts/remote-backup.sh Tue Oct 29 16:45:31 2019 +0100 +++ b/scripts/remote-backup.sh Wed Oct 30 13:28:14 2019 +0100 @@ -68,10 +68,10 @@ # # -scp ${backupFile}.gz ${backupFile2} $userName@$remoteTarget +scp ${backupFile}.gz ${backupFile2} $userName@$remoteTarget/$project echo " " -echo "completed sending ${backupFile}.gz and ${backupFile2} to ${remoteTarget} as user $userName" +echo "completed sending ${backupFile}.gz and ${backupFile2} to ${remoteTarget}/$(project) as user $userName"