Remove singlesite config
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@ -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.
 | 
			
		||||
@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user