Clients deleted every auto-backup_ snapshot on the server except the newest, so the backup held one state only. prune-snapshots now keeps the newest per day, week and month (14/8/24 by default) independent of the source, and the clients call it after each receive. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RywMtsL8qXG7GDY3MHq9Uh
14 lines
318 B
Python
14 lines
318 B
Python
from json import dumps
|
|
|
|
|
|
directories['/opt/backup-server'] = {}
|
|
|
|
files['/opt/backup-server/prune-snapshots'] = {
|
|
'mode': '755',
|
|
}
|
|
|
|
directories['/etc/backup-server'] = {}
|
|
|
|
files['/etc/backup-server/retention.json'] = {
|
|
'content': dumps(node.metadata.get('backup-server/retention'), indent=4, sort_keys=True),
|
|
}
|