rename variable
This commit is contained in:
parent
7e1701bc1f
commit
1cd155dcb4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue