.. _section3.4.9: 3.4.9 - Archive Saved Files ================================= .. _AS: Action Option -**AS** (-**ArchiveSavedFile**) (Aliases: -**ArchiveSaved**, -**ArchSaved**, -**ArchSavedFile**) : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Alias: -ArchiveSaved|-ArchSaved|-ArchSavedFile), copies local files to the GDEX Server as Saved files and registers them in GDEXDB. One or more files may be archived per execution. | **dsarch** [:ref:`-(DS|dataset) `] dNNNNNN -(AS|ArchiveSavedFile) [:ref:`Mode Options `] | [:ref:`-(LF|LocalFile) ` LocalFileNames] | [:ref:`-(LD|LocalDirectory) ` LocalDirectoryName] | [:ref:`-(LL|LocalFileList) ` LocalFileListName] | [:ref:`-(SF|SavedFile) ` SavedFileNames] | [:ref:`-(GI|GroupIndex) ` GroupIndices] | [:ref:`-(GN|GroupName) ` GroupNames] | [:ref:`-(TG|TopGroupIndex) ` TopGroupIndices] | [:ref:`-(PO|PatternOffset) ` PatternStringOffset] | [:ref:`-(ST|SavedFileType) ` SavedFileTypes] | [:ref:`-(FS|FileStatus) ` SavedFileStatus] | [:ref:`-(FF|FileFlag) ` FilesOrPaths] | [:ref:`-(LC|Location) ` StorageLocationFlags] | [:ref:`-(DF|DataFormat) ` DataFormat] | [:ref:`-(AF|ArchiveFormat) ` FileArchiveFormat] | [:ref:`-(DO|DisplayOrder) ` DisplayOrderIndices] | [:ref:`-(SZ|Size) ` FileSizes] | [:ref:`-(MC|MD5Checksum) ` MD5ChecksumValues] | [:ref:`-(DE|Description) ` SavedFileDescriptions] | [:ref:`-(VS|ValidSize) ` MinSizeForValidFile] | [:ref:`-(LN|LoginName) ` LoginAccountName] | [:ref:`-(AL|AsyncLimit) ` AsyncProcessLimit] | [:ref:`-(QS|QsubOptions) ` PBSBatchOptions] | [:ref:`-(BP|BatchProcess) ` [BatchControlInfo]] | [:ref:`-(DD|DeleteDir)
` DeleteLocalDirLevel] | [:ref:`-(DB|Debug) ` DebugModeInfo] Available mode options: .. list-table:: :widths: auto :header-rows: 0 * - :ref:`-(BG|BackGround) ` - runs in background; suppresses screen output and errors * - :ref:`-(CL|CleanLocal) ` - removes local files after all are successfully archived * - :ref:`-(EM|EMailNotice) ` - sends an email summary (including any errors) when the action completes or aborts * - :ref:`-(GZ|GMTZone) ` - uses GMT rather than local time for archiving timestamps * - :ref:`-(KP|KeepLocalPath) ` - uses local file paths as relative paths on the GDEX Server * - :ref:`-(MD|MyDataset) ` - allows any specialist to set GDEXDB information, regardless of dataset ownership * - :ref:`-(NE|NoEmail) ` - suppresses email notification on failure * - :ref:`-(NT|NoTrim) ` - skips trimming of spaces and comments from input values, speeding up input file processing * - :ref:`-(OE|OverrideExist) ` - overwrites existing Saved files * - :ref:`-(RO|ResetOrder) ` - resets display order indices to match the order files are given per :ref:`-SF `. Alternatively, use :ref:`-ON ` (-OrderNames) to reorder all files in the dataset and affected groups * - :ref:`-(SC|SetChecksum) ` - computes MD5 checksums for files on the GDEX Server and saves them to GDEXDB * - :ref:`-(UZ|UnzipData) ` - decompresses files using 'gunzip', 'uncompress', 'unzip', or 'bunzip' according to the extension: '.gz', '.Z', '.zip', or '.bz2', respectively * - :ref:`-(XC|CrossCopy) ` - copies files from existing Saved/Object storage to fill missing Object/Saved copies, using GDEXDB records for guidance * - :ref:`-(XM|CrossMove) ` - moves files from existing Saved/Object storage to fill missing Object/Saved copies (originals are removed) * - :ref:`-(ZD|ZipData) ` - compresses files using 'gzip', 'compress', 'zip', or 'bzip' according to the archive format ('GZ', 'Z', 'ZIP', or 'BZ2') given via :ref:`-AF ` (-ArchiveFormat) Local file names are provided via :ref:`-LF ` (-LocalFile). On the command line, '*' and '?' wildcards are supported. Files not in the current directory must include relative or absolute paths. If a directory is given via :ref:`-LD ` (-LocalDirectory), files are gathered recursively from that tree. Local file names are used as Saved file names by default unless :ref:`-SF ` (-SavedFile) is given explicitly. Files are archived under the dataset home directory; use :ref:`-SP ` (-SavedPath) or the path stored in GDEXDB to override. When :ref:`-KP ` (-KeepLocalPath) is specified, local file paths are used as-is on the GDEX Server and :ref:`-SP ` is not permitted. Assign files to a group via :ref:`-GI ` (-GroupIndex) or :ref:`-GN ` (-GroupName). If no group is specified, pattern matching against group patterns saved via :ref:`-SG ` is attempted when :ref:`-PO ` (-PatternOffset) is present or the file is not yet in GDEXDB. Unmatched files default to group index 0 (no group). The number of values supplied to :ref:`Info options ` must match the number of local file names, except for options that accept a single shared value: :ref:`-GI `, :ref:`-DF `, :ref:`-AF `, :ref:`-ST ` (-SavedFileType), and :ref:`-SP `. The storage location is set via :ref:`-LC ` (-Location). Defaults to 'G' (Glade Disk only). | :ref:`Back to Top ` | :ref:`Back to Table of Contents `