Mercurial > public > ssdt-docker
changeset 317:146c0c263cf9
adding project to remote backup scripts target
author | aldrich@ssdt-ohio.org |
---|---|
date | Wed, 30 Oct 2019 13:28:14 +0100 |
parents | 83f30dc7e9fb |
children | c61524abdfd6 |
files | scripts/remote-backup-all.sh scripts/remote-backup.sh |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
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"
--- 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"