From 1cd155dcb4107550672f5c546d566a7433c7296c Mon Sep 17 00:00:00 2001 From: ray Date: Sun, 13 Sep 2020 21:35:24 +0100 Subject: [PATCH] rename variable --- tools/wp-content-db/restore.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/wp-content-db/restore.sh b/tools/wp-content-db/restore.sh index 63fa6ef..1885735 100755 --- a/tools/wp-content-db/restore.sh +++ b/tools/wp-content-db/restore.sh @@ -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