From 3c9b9d31888a9af1a9016665ec6607f78f290956 Mon Sep 17 00:00:00 2001 From: Jennie Robinson Faber Date: Thu, 9 Apr 2026 09:21:50 +0100 Subject: [PATCH] Move backup volume to /var/backups/outline so DokPloy redeploys don't wipe it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 4 AM export push triggers a DokPloy redeploy which rm-rf's the code directory — including ./backups/. Using an absolute path outside the code dir keeps backups safe across redeploys. --- .cursorignore | 9 --------- .cursorindexingignore | 9 --------- docker-compose.yml | 3 ++- 3 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 .cursorignore delete mode 100644 .cursorindexingignore diff --git a/.cursorignore b/.cursorignore deleted file mode 100644 index 9d5b640..0000000 --- a/.cursorignore +++ /dev/null @@ -1,9 +0,0 @@ -.env* -*.pem -*.key -*.p12 -*.pfx -*.crt -*.cert -credentials.* -secrets.* diff --git a/.cursorindexingignore b/.cursorindexingignore deleted file mode 100644 index 9d5b640..0000000 --- a/.cursorindexingignore +++ /dev/null @@ -1,9 +0,0 @@ -.env* -*.pem -*.key -*.p12 -*.pfx -*.crt -*.cert -credentials.* -secrets.* diff --git a/docker-compose.yml b/docker-compose.yml index 34cb1bd..77c6329 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -86,7 +86,8 @@ services: # Absolute path required: DokPloy does NOT expand ~ and would otherwise # create a literal "~" directory under the deployment dir. - /root/.ssh:/root/.ssh:ro - - ./backups:/backups/outline + # Absolute path so DokPloy's rm-rf of the code dir doesn't wipe backups. + - /var/backups/outline:/backups/outline env_file: - .env