add TODOs
This commit is contained in:
parent
04c0fb169e
commit
4c4a3d350c
|
@ -13,11 +13,13 @@ backup_db_dest="/tmp/wp-db-$timestamp"
|
||||||
echo "restoring from $backup_dir"
|
echo "restoring from $backup_dir"
|
||||||
|
|
||||||
ssh "$remote_ssh" "mv $remote_wp_path/wp-content $backup_dir_dest"
|
ssh "$remote_ssh" "mv $remote_wp_path/wp-content $backup_dir_dest"
|
||||||
|
# TODO - only continue if backup succesful
|
||||||
echo "remote wp-content backed up as: $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 -"
|
cat "$backup_dir/$backup_dir.tar" | ssh "$remote_ssh" "cd /; tar zxvf -"
|
||||||
|
|
||||||
# TODO - test database backup works
|
# TODO - test database backup works
|
||||||
ssh "$remote_ssh" "wp db export $backup_db_dest --path=$remote_wp_path"
|
ssh "$remote_ssh" "wp db export $backup_db_dest --path=$remote_wp_path"
|
||||||
|
# TODO - only continue if backup succesful
|
||||||
echo "remote database backed up as: $backup_db_dest"
|
echo "remote database backed up as: $backup_db_dest"
|
||||||
cat "./$backup_dir/$backup_dir.sql" | wp db import --ssh="$remote_ssh$remote_wp_path" -
|
cat "./$backup_dir/$backup_dir.sql" | wp db import --ssh="$remote_ssh$remote_wp_path" -
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue