Obnam

From Attie's Wiki
Revision as of 10:32, 10 July 2017 by Attie (Talk | contribs)

Jump to: navigation, search

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
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox