hs.scripts/rollback/taiga/rollback.sh

12 lines
264 B
Bash
Raw Permalink 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/var/rollback/media_clean/user/ $HOME/data/media/user/
echo "feeding the dump..."
pg_restore -c -h localhost -U $dbuser -d $db < $dump
. $HOME/scripts/restart.sh