10 lines
211 B
Bash
10 lines
211 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
source $HOME/scripts/config.env
|
|
|
|
echo "syncing data..."
|
|
rsync -aAX --delete $HOME/var/rollback/wp-content/ $HOME/wordpress/wp-content/
|
|
|
|
echo "feeding the dump..."
|
|
mysql -u $dbuser $db < $dump |