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.
smos-archive export command lets you export (pieces of) your archive to an external directory for cold storage.
smos-archive export /path/to/export/dir --last-year --also-delete-originals
Usage: smos-archive export FILEPATH [FILTER]
[[--begin LOCALTIME] [--end LOCALTIME] |
--yesterday | --today | --tomorrow | --last-week |
--this-week | --next-week | --last-month |
--this-month | --next-month | --last-year |
--this-year | --next-year | --all-time]
Export (a portion of) an archive
FILEPATH The directory to export the archive to
FILTER A filter to smos files by
--begin LOCALTIME start time (inclusive)
--end LOCALTIME end tiem (inclusive)
--last-week last week
--this-week this week
--next-week next week
--last-month last month
--this-month this month
--next-month next month
--last-year last year
--this-year this 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
This command does not use any extra environment variables.
This command admits no extra configuration.