hs.scripts/rollback/wordpress/setstate.sh

10 lines
258 B
Bash
Raw Normal View History

2024-04-25 13:49:12 +02:00
#!/bin/bash
set -e
source $HOME/scripts/config.env
echo "syncing data..."
rsync -aAX --delete $HOME/wordpress/wp-content/ $HOME/var/rollback/wp-content/
echo "creating a new dump"
mysqldump -u$dbuser $db --add-drop-table > $HOME/var/rollback/wordpress.sql