diff --git a/flux2/apps/nextcloud/pvc.yaml b/flux2/apps/nextcloud/pvc.yaml
index 6145d3d3994b44ba6f1898c8e4e7ca7c45c165c0..1b5a811439ecc80e2a6e0d0907fdf2ed69c7740b 100644
--- a/flux2/apps/nextcloud/pvc.yaml
+++ b/flux2/apps/nextcloud/pvc.yaml
@@ -37,3 +37,16 @@ spec:
     requests:
       storage: 512Mi
   storageClassName: local-path
+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  name: nextcloud-onlyoffice-data
+spec:
+  accessModes:
+    - ReadWriteOnce
+  volumeMode: Filesystem
+  resources:
+    requests:
+      storage: 512Mi
+  storageClassName: local-path
diff --git a/flux2/apps/nextcloud/release.yaml b/flux2/apps/nextcloud/release.yaml
index a458708d6125d23c5621905c573f4bd1df571b87..649ed2bbc31d2e866e9ae957ec350d5d52915c1f 100644
--- a/flux2/apps/nextcloud/release.yaml
+++ b/flux2/apps/nextcloud/release.yaml
@@ -144,6 +144,10 @@ spec:
             secretName: oas-nextcloud-office
       jwtSecret: "${onlyoffice_jwt_secret}"
 
+      persistence:
+        enabled: true
+        existingClaim: "nextcloud-onlyoffice-data"
+
     postgresql:
       postgresqlPassword: "${onlyoffice_postgresql_password}"
       resources:
diff --git a/flux2/infrastructure/sources/nextcloud.yaml b/flux2/infrastructure/sources/nextcloud.yaml
index f135ed01db5026541bb9ca6c80fcd2a596953fbe..01b9f6289268698493489c4d3ebeec5e64f8d215 100644
--- a/flux2/infrastructure/sources/nextcloud.yaml
+++ b/flux2/infrastructure/sources/nextcloud.yaml
@@ -13,4 +13,5 @@ spec:
   # For all available options, see:
   # https://toolkit.fluxcd.io/components/source/api/#source.toolkit.fluxcd.io/v1beta1.GitRepositoryRef
   ref:
-    tag: 0.2.8
+    # tag: 0.2.8
+    branch: 967-prevent-loss-of-onlyoffice-documents