/data/ssh-host-keys - location where the server's host keys are stored
/data/backup - location where backups are stored (for each client, a directory with the client name will be created)
The backup volume must support XATTR in order to preserve file attributes
Environment variables:
BACKUP_CLIENTS a list of whitespace separated "client_name:key_type:ssh_key" entries for all clients access to this backup server
SSHD_LOG_LEVEL (default: info) The log level for ssh daemon (for debuging purposes)
BACKUP_DELETE_SCHEDULE (default: 07:00) defines the time when backups are deleted
BACKUP_KEEP_INTERVALS (default: 1h 12h 1d 2d 3d 4d 5d 6d 7d 9d 11d 14d 21d 28d 35d) defines a list of intervals to keep backups for. Must be in ascending order
Once every day, old backups are deleted. To determine which backups should be kept, an algorithm parses BACKUP_KEEP_INTERVALS and calculates which backups are required so that in each interval exists at least one backup at any time.