10 lines
258 B
Bash
10 lines
258 B
Bash
#!/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 |