Enable borgmatic backups for the migration.internal.swh.org host
Found host migration.internal.softwareheritage.org
*** Running octocatalog-diff on host migration.internal.softwareheritage.org
diff origin/production/migration.internal.softwareheritage.org current/migration.internal.softwareheritage.org
*******************************************
+ Exec[sed -e /dar\./d -e /swh-dar-backup/d -i /var/spool/cron/crontabs/root] =>
parameters =>
"onlyif": "grep -q swh-dar-backup /var/spool/cron/crontabs/root"
"path": ["/sbin", "/usr/sbin", "/bin", "/usr/bin"]
*******************************************
+ Exec[ssh-keygen -t ed25519 -f /root/.ssh/id_ed25519.borg -N ''] =>
parameters =>
"creates": "/root/.ssh/id_ed25519.borg"
"path": ["/bin", "/usr/bin"]
*******************************************
+ File[/etc/borgmatic/config.yaml] =>
parameters =>
"ensure": "present"
"group": "root"
"mode": "0600"
"owner": "root"
"content": >>>
# File managed by puppet - modifications will be lost
location:
source_directories:
- "/"
repositories:
- borg@banco.internal.softwareheritage.org:/srv/borg/repositories/migration.internal.softwareheritage.org
exclude_patterns:
- "/srv/phabricator"
- "/dev"
- "/proc"
- "/run"
- "/srv/backups"
- "/srv/db-backups"
- "/srv/elasticsearch"
- "/srv/remote-backups"
- "/srv/softwareheritage/objects"
- "/srv/softwareheritage/postgres"
- "/srv/softwareheritage/scratch"
- "/srv/softwareheritage/scratch.2TB"
- "/srv/storage"
- "/sys"
- "/tmp"
- "/var/cache"
- "/var/lib/mysql"
- "/var/log/journal"
- "/var/run"
- "/var/tmp"
- "/var/lib/borg"
exclude_caches: true
exclude_if_present: ".nobackup"
storage:
ssh_command: ssh -i /root/.ssh/id_ed25519.borg
encryption_passphrase: hvcGB5JwTVVbFZJc
borg_base_directory: "/var/lib/borg"
archive_name_format: migration.internal.softwareheritage.org-{now:%Y-%m-%dT%H:%M:%S.%f}
retention:
keep_hourly: 24
keep_daily: 7
keep_weekly: 4
keep_monthly: 6
prefix: migration.internal.softwareheritage.org-
consistency:
prefix: migration.internal.softwareheritage.org-
<<<
*******************************************
+ File[/etc/borgmatic] =>
parameters =>
"ensure": "directory"
"group": "root"
"mode": "0600"
"owner": "root"
*******************************************
+ File[/etc/logrotate.d/swh-dar] =>
parameters =>
"ensure": "absent"
*******************************************
+ File[/srv/backups] =>
parameters =>
"ensure": "absent"
"force": true
"purge": true
"recurse": true
*******************************************
+ File[/usr/local/bin/swh-dar-backup] =>
parameters =>
"ensure": "absent"
*******************************************
+ File[/var/lib/borg] =>
parameters =>
"ensure": "directory"
"group": "root"
"mode": "0600"
"owner": "root"
*******************************************
+ File[/var/log/dar] =>
parameters =>
"ensure": "absent"
"force": true
"purge": true
"recurse": true
*******************************************
- Node[default]
*******************************************
+ Node[migration.internal.softwareheritage.org]
*******************************************
+ Package[borgbackup] =>
parameters =>
"ensure": "installed"
*******************************************
+ Package[borgmatic] =>
parameters =>
"ensure": "installed"
*******************************************
*** End octocatalog-diff on migration.internal.softwareheritage.org