diff --git a/docs/examples/postgres-backup.sh b/docs/examples/postgres-backup.sh index e7c937f..e3cde47 100755 --- a/docs/examples/postgres-backup.sh +++ b/docs/examples/postgres-backup.sh @@ -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 \ No newline at end of file