comparison 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
comparison
equal deleted inserted replaced
316:83f30dc7e9fb 317:146c0c263cf9
90 90
91 #backup of all files in current directory 91 #backup of all files in current directory
92 echo "starting backup of current directory for $project" 92 echo "starting backup of current directory for $project"
93 93
94 #tar -czf ${backupFile3} . --exclude=./backup 94 #tar -czf ${backupFile3} . --exclude=./backup
95 tar --exclude=./backup -czf ${backupFile3} . --exclude=./backup 95 tar --exclude=./backup -czf ${backupFile3} .
96 96
97 echo "completed backup of all files for $project to ${backupFile3}" 97 echo "completed backup of all files for $project to ${backupFile3}"
98 98
99 99
100 # 100 #
101 # 101 #
102 scp ${backupFile1}.gz ${backupFile2}.gz ${backupFile3} $userName@$remoteTarget 102 scp ${backupFile1}.gz ${backupFile2}.gz ${backupFile3} $userName@$remoteTarget/$project
103 103
104 echo " " 104 echo " "
105 105
106 echo "completed sending ${backupFile1}.gz, ${backupFile2}.gz, and ${backupFile3} to ${remoteTarget} as user $userName" 106 echo "completed sending ${backupFile1}.gz, ${backupFile2}.gz, and ${backupFile3} to ${remoteTarget}/$(project) as user $userName"
107 107
108 108