How to archive and retrieve data in BaseSpace using BaseSpace Command Line Interface (CLI) commands?
`$ bs archive run -i <Run ID>$ bs archive dataset -i <Dataset ID>` `# show all archived runs$ bs list runs --filter-field IsArchived --filter-term true` Restoring data from the archive
`$ bs unarchive run -i 123456$ bs unarchive dataset -i ds.123` Bulk archival
# archive all runs which are over a year old$ bs list runs --older-than 1y --terse | xargs -n1 bs archive run -i# archive all datasets in a given project$ bs list datasets --project-id 123456 --terse | xargs -n1 bs archive dataset -i Last updated
Was this helpful?
