rename variable

This commit is contained in:
Ray Elliott 2020-09-13 21:35:24 +01:00
parent 7e1701bc1f
commit 1cd155dcb4
1 changed files with 3 additions and 3 deletions

View File

@ -8,9 +8,9 @@ backup_dir="$1"
echo "restoring from $backup_dir"
backup_db_dest="/tmp/wp-content-$(date +%s)"
ssh "$remote_ssh" "mv $remote_wp_path/wp-content $backup_db_dest"
echo "remote wp-content backed up as: $backup_db_dest"
backup_dir_dest="/tmp/wp-content-$(date +%s)"
ssh "$remote_ssh" "mv $remote_wp_path/wp-content $backup_dir_dest"
echo "remote wp-content backed up as: $backup_dir_dest"
cat "$backup_dir/$backup_dir.tar" | ssh "$remote_ssh" "cd /; tar zxvf -"
# TODO - test database backup works