Configuration¶
The configuration file for backup/restore is called backup_config.yml and is located in /srv/git/saltbox
---
backup:
  local:
    enable: true # (1)
    destination: /mnt/local/Backups/Saltbox # (2)
  rclone:
    enable: true # (3)
    destination: google:/Backups/Saltbox # (4)
  rsync:
    enable: false # (5)
    destination: rsync://somehost.com/Backups/Saltbox # (6)
    port: 22 # (7)
  cron:
    cron_time: weekly # (8)
    enable: no # (9)
  restore_service:
    user: # (10)
    pass: # (11)
  misc:
    snapshot: true # (12)
- 
Toggle for keeping a local copy of the backup. Options are: trueorfalse
- 
Path used for the local backups. 
- 
Toggle for using Rclone remote backup storage. Options are: trueorfalse
- 
Path used for the Rclone remote. Backups outside of the most recent one will be located in the archivedfolder.Make sure that this path is unique if you run multiple instances of Saltbox. 
- 
Toggle for using Rsync backups. Options are: trueorfalse
- 
Path used for the Rsync backups. 
- 
Port used by rsync on the target server. 
- 
Schedule for when the backup task will be executed. Options are: reboot,yearly,annually,monthly,weekly,daily,hourly.Should you desire more granular control over the schedule you can edit the crontab for the Saltbox user once setup. 
- 
Toggle for enabling automatic backups. Options are: nooryesDepending on the option set here the cron entry created by Saltbox will be added, removed or modified. 
- 
Username used for the restore service. Has to be unique across all users of the service. Try sticking with a url for the server box.domain.tldunique to each server for something easily remembered.Usernames are hashed before requests are sent to the restore service. 
- 
Password used encrypt/decrypt the configuration files. Only used on the client side in scripts. 
- 
Toggle for BTRFS snaphots. Options are: trueorfalseRequires BTRFS on /or/opt
IMPORTANT:
These values:
yml
  restore_service:
    user: # 
    pass: #
SHOULD NOT BE YOUR SERVER ACCOUNT CREDENTIALS.
These are an arbitrary username/password that you make up which are used ONLY with this backup/restore service. They are used to encrypt your config files before they are placed on the saltbox restore server, and then in the restore command that retrieves the backup for decryption. They are not sent or stored anywhere else. If they are not filled in, then your config files will not be sent to the saltbox restore service.