Add restore example.
This commit is contained in:
parent
6a22e2de3a
commit
3d98730097
@ -12,3 +12,8 @@ ssh root@${TARGET} "doas -u postgres /usr/bin/pg_dump -Fc nextcloud | /usr/bin/b
|
||||
mkdir -p $HOME/archive/${TARGET}/postgresql/
|
||||
rsync -tav ${TARGET}:${DUMP_FILE} $HOME/archive/${TARGET}/postgresql/
|
||||
ssh root@${TARGET} rm -v ${DUMP_FILE}
|
||||
|
||||
# restore
|
||||
#su - postgres
|
||||
# dropdb nextcloud; createdb nextcloud
|
||||
#bzcat nextcloud_*.dump.bz2 | pg_restore -d nextcloud
|
Loading…
Reference in New Issue
Block a user