Smos Logo Smos

A comprehensive self-management system

Exporting your smos archive

Documentation for the export command of the Smos Archiving tool, for exporting your archive to cold storage.

When your archive directory becomes too big, this can get in the way of things like running smos-query commands quickly, and small periodic backups. The smos-archive export command lets you export (pieces of) your archive to an external directory for cold storage.

Example usage:

smos-archive export /path/to/export/dir --last-year --also-delete-originals



Usage: smos-archive export FILEPATH [FILTER] 
                           [[--begin DAY] [--end DAY] | --yesterday | --today | 
                             --tomorrow | --last-week | --past-week | 
                             --this-week | --coming-week | --next-week | 
                             --last-month | --past-month | --this-month | 
                             --coming-month | --next-month | --last-year | 
                             --past-year | --this-year | --coming-year | 
                             --next-year | --all-time] [--also-delete-originals]

  Export (a portion of) an archive

Available options:
  FILEPATH                 The directory to export the archive to
  FILTER                   A filter to smos files by
  --begin DAY              start date (inclusive)
  --end DAY                end time (inclusive)
  --yesterday              yesterday
  --today                  today
  --tomorrow               tomorrow
  --last-week              last week
  --past-week              the past week
  --this-week              this week
  --coming-week            the coming week
  --next-week              next week
  --last-month             last month
  --past-month             the past month
  --this-month             this month
  --coming-month           the coming month
  --next-month             next month
  --last-year              last year
  --past-year              the past year
  --this-year              this year
  --coming-year            the coming year
  --next-year              next year
  --all-time               all time
  --also-delete-originals  Also delete the originals from the archive
  -h,--help                Show this help text

Global options:
  --config-file FILE_PATH  The config file to use
  --workflow-dir DIRECTORY_PATH
                           The workflow directory to use
  --archive-dir DIRECTORY_PATH
                           The archive directory to use
  --projects-dir DIRECTORY_PATH
                           The projects directory to use
  --archived-projects-dir DIRECTORY_PATHPATH
                           The archived projects directory to use
  --log-level ARG          The log level to use, options:


This command does not use any extra environment variables.


This command admits no extra configuration.