From a330574682dd517ad9ec91e1b78eea571c9aa4d1 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Wed, 2 Jun 2021 11:22:22 +0200 Subject: [PATCH] Remove old configs --- backup.d/borgmatic.yml | 36 --------------------- backup.d/fr_microsites_wordpress.yml | 47 ---------------------------- 2 files changed, 83 deletions(-) delete mode 100644 backup.d/borgmatic.yml delete mode 100644 backup.d/fr_microsites_wordpress.yml diff --git a/backup.d/borgmatic.yml b/backup.d/borgmatic.yml deleted file mode 100644 index 8168296..0000000 --- a/backup.d/borgmatic.yml +++ /dev/null @@ -1,36 +0,0 @@ -location: - source_directories: - - /var/www/html/wp-content - repositories: - - {{ env "BORGBASE_REPO" }} - -storage: - compression: auto,zstd - encryption_passphrase: {{ secret "backup_bot_password" }} - archive_name_format: "{hostname}-{now}" - ssh_command: "ssh -o 'StrictHostKeyChecking no' -i /run/secrets/backup_bot_ssh_key" - -retention: - keep_daily: 3 - keep_weekly: 4 - keep_monthly: 12 - keep_yearly: 2 - prefix: "{hostname}-" - -consistency: - checks: - - disabled - check_last: 3 - prefix: "{hostname}-" - -hooks: - before_backup: - - echo "`date` - Starting backup" - after_backup: - - echo "`date` - Finished backup" - mysql_databases: - - name: {{ env "DB_TABLE" }} - hostname: {{ env "DB_HOST" }} - port: 3306 - username: {{ env "DB_USER" }} - password: {{ secret "db_password" }} diff --git a/backup.d/fr_microsites_wordpress.yml b/backup.d/fr_microsites_wordpress.yml deleted file mode 100644 index fdcfe26..0000000 --- a/backup.d/fr_microsites_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="bp5oj726@bp5oj726.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_multisite_passwd_v1 - external: true