diff --git a/nextcloud.sh b/nextcloud.sh new file mode 100644 index 0000000..6ca8c32 --- /dev/null +++ b/nextcloud.sh @@ -0,0 +1,9 @@ +pre() { + docker exec nextcloud_db_1 pg_dump -U postgres nextcloud > /tmp/nextcloud.sql + docker exec -u 33 nextcloud_app_1 ./occ maintenance:mode --on +} + +post() { + rm /tmp/nextcloud.sql + docker exec -u 33 nextcloud_app_1 ./occ maintenance:mode --off +}