diff --git a/backup.d/NOTES.md b/backup.d/NOTES.md deleted file mode 100644 index be0377d..0000000 --- a/backup.d/NOTES.md +++ /dev/null @@ -1,3 +0,0 @@ -# Notes - -- The only thing different between [fr_singlesite_wordpress.yml](./fr_singlesite_wordpress.yml) and [fr_microsites_wordpress.yml](./fr_microsites_wordpress.yml) is the `BORGBASE_REPO` environment variable and the `backup_bot_singlesite_passwd_v1`/`backup_bot_multisite_passwd_v1` secret. These are the two details which are needed for Borgmatic to know how to differentiate between each repository on the Borgbase side (where our backups are stored). Sooo, there could most definitely be a reduction in boilerplate here but I was just moving super fast and wanted to get the backup work done. diff --git a/backup.d/fr_singlesite_wordpress.yml b/backup.d/fr_singlesite_wordpress.yml deleted file mode 100644 index df457cf..0000000 --- a/backup.d/fr_singlesite_wordpress.yml +++ /dev/null @@ -1,47 +0,0 @@ ---- -version: "3.8" - -services: - backupbot: - image: "decentral1se/backup-bot:latest" - networks: - - backend - volumes: - - "wordpress_content:/var/www/html/wp-content/" - secrets: - - source: backup_bot_ssh_key - mode: 0400 - - backup_bot_password - - db_password - configs: - - source: borgmatic_config_yml - target: /etc/borgmatic/config.yaml - environment: - - BORGBASE_REPO="l32s99em@l32s99em.repo.borgbase.com:repo" - - DB_HOST=db - - DB_TABLE=wordpress - - DB_USER=wordpress - deploy: - mode: replicated - replicas: 0 - labels: - - "swarm.cronjob.enable=true" - - "swarm.cronjob.schedule=0 2 * * *" # At 02:00 - restart_policy: - condition: none - networks: - - backend - -configs: - borgmatic_config_yml: - name: borgmatic_config_yml_v1 - file: backup.d/borgmatic.yml - template_driver: golang - -secrets: - backup_bot_ssh_key: - name: backup_bot_ssh_key_v1 - external: true - backup_bot_password: - name: backup_bot_singlesite_passwd_v1 - external: true