Skip to content
Discussion options

You must be logged in to vote

Thanks for your suggestions, I more or less combined them for what I'm doing now. Let me show you and describe:

nextcloud:
  inherit: default
  backup:
    run-before:
    - docker exec --user www-data nextcloud php occ maintenance:mode --on
    - docker exec nextcloud-mariadb mariadb-dump --single-transaction --default-character-set=utf8mb4 -u nextcloud -p***** nextcloud > '/srv/data/nextcloud/backup/nextcloud-mariadb.sql'
    exclude:
    - /srv/data/nextcloud/db
    source:
    - /srv/data/nextcloud
    - /srv/cloud/data
    run-finally:
    - rm -rv '/srv/data/nextcloud/backup/nextcloud-mariadb.sql'
    - docker exec --user www-data nextcloud php occ maintenance:mode --off
    schedule: 

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LeSpocky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants