Obnam

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
Line 10: Line 10:
 
obnam -r sftp://${REPO_HOST}/${REPO_PATH} --compress-with=deflate clients
 
obnam -r sftp://${REPO_HOST}/${REPO_PATH} --compress-with=deflate clients
 
obnam -r sftp://${REPO_HOST}/${REPO_PATH} restore
 
obnam -r sftp://${REPO_HOST}/${REPO_PATH} restore
 +
</source>
 +
 +
==Forgetting==
 +
The following (if I've understood correctly), will keep generations using the following policy:
 +
* 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
 +
 +
<source lang="bash">
 +
obnam -r sftp://${REPO_HOST}/${REPO_PATH} forget --keep=30d,24w,24m,10y
 
</source>
 
</source>

Revision as of 11:28, 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:

  • 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=30d,24w,24m,10y
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox