Obnam
From Attie's Wiki
(Difference between revisions)
m |
m (→Forgetting) |
||
Line 14: | Line 14: | ||
==Forgetting== | ==Forgetting== | ||
The following (if I've understood correctly), will keep generations using the following policy: | The following (if I've understood correctly), will keep generations using the following policy: | ||
+ | * Hourly, for the last 7 days | ||
* Daily, for the last 30 days | * Daily, for the last 30 days | ||
* Weekly, for the last 24 weeks (~6 months) | * Weekly, for the last 24 weeks (~6 months) | ||
Line 20: | Line 21: | ||
<source lang="bash"> | <source lang="bash"> | ||
− | obnam -r sftp://${REPO_HOST}/${REPO_PATH} forget --keep=30d,24w,24m,10y | + | obnam -r sftp://${REPO_HOST}/${REPO_PATH} forget --keep=168h,30d,24w,24m,10y |
</source> | </source> |
Revision as of 11:32, 10 July 2017
Command Reference
REPO_HOST=me@repo REPO_PATH=~/my_files BACKUP_DIR=/home/me/ obnam -r sftp://${REPO_HOST}/${REPO_PATH} --compress-with=deflate backup --deduplicate=verify --root=${BACKUP_DIR} obnam -r sftp://${REPO_HOST}/${REPO_PATH} --compress-with=deflate generations obnam -r sftp://${REPO_HOST}/${REPO_PATH} --compress-with=deflate fsck obnam -r sftp://${REPO_HOST}/${REPO_PATH} --compress-with=deflate clients obnam -r sftp://${REPO_HOST}/${REPO_PATH} restore
Forgetting
The following (if I've understood correctly), will keep generations using the following policy:
- Hourly, for the last 7 days
- Daily, for the last 30 days
- Weekly, for the last 24 weeks (~6 months)
- Monthly, for the last 24 months (2 years)
- Yearly, for the last 10 years
obnam -r sftp://${REPO_HOST}/${REPO_PATH} forget --keep=168h,30d,24w,24m,10y