summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrothedev <grothedev@gmail.com>2021-08-04 07:48:17 -0400
committerGitHub <noreply@github.com>2021-08-04 07:48:17 -0400
commit2d9ea2e7d5d856f6566887a19f7cc6bdfc842bbe (patch)
tree04bad82871745cefceb874b828a0337903115ef7
parentc6229a6a77be428112201193b37e59be99398f65 (diff)
use env var for remote backup dir
-rwxr-xr-xbackup_personal4
1 files changed, 2 insertions, 2 deletions
diff --git a/backup_personal b/backup_personal
index 7dcb9f6..fbd1a7c 100755
--- a/backup_personal
+++ b/backup_personal
@@ -46,14 +46,14 @@ then
if [[ $force == 1 ]]
then
echo "-f set, so will backup entire home dir.\n"
- rsync -avzpR -e ssh ${home}/ ${user}@"$ip":backup | tee -a ~/.backuplog
+ rsync -avzpR -e ssh ${home}/ ${user}@${ip}:backup | tee -a ~/.backuplog
else
echo "no custom path given. will do nothing.\n"
exit 0
fi
else
#rsync -avzp -e ssh --exclude-from "$excluded_list" --exclude $excluded /home/thomas/$src/ thomas@grothe.ddns.net:backup/$src | tee -a ~/.backuplog
- rsync -avzpP --relative -e ssh $rsync_args ${home}/./$src/ ${user}@"$ip":backup/ | tee -a ~/.backuplog
+ rsync -avzpP --relative -e ssh $rsync_args ${home}/./${src}/ ${user}@${ip}:${HB_BACKUP_DIR} | tee -a ~/.backuplog
fi