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