8361ab701c
This adds a retirement and purge list to the borg management role. The idea here is that when a backed-up host is shut-down, we add its backup user to the retired list. On the next ansible run the user will be disabled on the backup-server and the backup repo marked as retired. On the next prune, we will trim the backup to only the last run to save space. This gives us a grace period to restore if we should need to. When we are sure we don't want the data, we can put it in the purge list, and the backup repo is removed on the next ansible run (hosts can go straight into this if we want). This allows us to have a review process/history before we purge data. To test, we create a fake "borg-retired" user on the backup-server, and give it a simple backup. This is marked as retired, which is reflected in the testinfra run of the prune script. Similarly a "borg-purge" user is created, and we ensure it's backup dir is removed. Documentation is updated. Change-Id: I5dff0a9d35b11a1f021048a12ecddce952c0c13c |
||
---|---|---|
.. | ||
conftest.py | ||
test_adns.py | ||
test_base.py | ||
test_borg_backups.py | ||
test_bridge.py | ||
test_codesearch.py | ||
test_eavesdrop.py | ||
test_etherpad.py | ||
test_gerrit.py | ||
test_gitea_lb.py | ||
test_gitea.py | ||
test_grafana.py | ||
test_graphite.py | ||
test_keycloak.py | ||
test_letsencrypt.py | ||
test_lists_opendev_org.py | ||
test_meetpad.py | ||
test_mirror-update.py | ||
test_mirror.py | ||
test_nodepool.py | ||
test_ns.py | ||
test_paste.py | ||
test_refstack.py | ||
test_registry.py | ||
test_static.py | ||
test_tracing.py | ||
test_zookeeper.py | ||
test_zuul_db.py | ||
test_zuul_executor.py | ||
test_zuul_launcher.py | ||
test_zuul_lb.py | ||
test_zuul_merger.py | ||
test_zuul_preview.py | ||
test_zuul_scheduler.py | ||
util.py |