DATALAD-ADD-ARCHIVE-CONTENT(1)
π¦ datalad add-archive-content(1) β General Commands Manual π¦
okay bestie, welcome to the General Commands Manual page for datalad add-archive-content β it's giving archive-extraction-with-annex-energy, and we are keeping every single detail. π
β¨
πΈ NAME πΈ
datalad add-archive-content β add content of an archive under git annex control. π
β¨ SYNOPSIS β¨
datalad add-archive-content [-h] [-d DATASET] [--annex ANNEX] [--add-
archive-leading-dir] [--strip-leading-dirs] [--leading-dirs-
depth LEADING_DIRS_DEPTH] [--leading-dirs-
consider LEADING_DIRS_CONSIDER] [--use-current-dir] [-D] [--key]
[-e EXCLUDE] [-r RENAME] [--existing {fail,overwrite,archive-
suffix,numeric-suffix}] [-o ANNEX_OPTIONS] [--copy] [--no-commit]
[--allow-dirty] [--stats STATS] [--drop-after] [--delete-after]
[--version] archive
π DESCRIPTION π
Given an already annex'ed archive, extract and add its files to the dataset, and reference the original archive as a custom special remote. π«Ά
π Examples π
Add files from the archive big_tarball.tar.gz, but keep big_tarball.tar.gz in the index:
% datalad add-archive-content big_tarball.tar.gz
Add files from the archive tarball.tar.gz, and remove big_tarball.tar.gz from the index:
% datalad add-archive-content big_tarball.tar.gz --delete
Add files from the archive s3.zip but remove the leading directory:
% datalad add-archive-content s3.zip --strip-leading-dirs
π OPTIONS π
archiveβ archive file or a key (if--keyspecified). Constraints: value must be a string ποΈ-h,--help,--help-npβ show this help message.--help-npforcefully disables the use of a pager for displaying the help message β¨-d DATASET,--dataset DATASETβ specify the dataset to save. Constraints: Value must be a Dataset or a valid identifier of a Dataset (e.g. a path) or value must be NONE π--annex ANNEXβ DEPRECATED. Use the'dataset'parameter instead. π--add-archive-leading-dirβ place extracted content under a directory which would correspond to the archive name with all suffixes stripped. E.g. the content ofarchive.tar.gzwill be extracted underarchive/. π--strip-leading-dirsβ remove one or more leading directories from the archive layout on extraction. βοΈ--leading-dirs-depth LEADING_DIRS_DEPTHβ maximum depth of leading directories to strip. If not specified (None), no limit. π--leading-dirs-consider LEADING_DIRS_CONSIDERβ regular expression(s) for directories to consider to strip away. Constraints: value must be a string or value must be NONE π§--use-current-dirβ extract the archive under the current directory, not the directory where the archive is located. This parameter is applied automatically if--keywas used. π-D,--deleteβ delete original archive from the filesystem/Git in current tree. Note that it will be of no effect if--keyis given. π--keyβ signal if provided archive is not actually a filename on its own but an annex key. The archive will be extracted in the current directory. π-e EXCLUDE,--exclude EXCLUDEβ regular expressions for filenames which to exclude from being added to annex. Applied after--renameif that one is specified. For exact matching, use anchoring. Constraints: value must be a string or value must be NONE πΈ-r RENAME,--rename RENAMEβ regular expressions to rename files before added them under to Git. The first defines how to split provided string into two parts: Python regular expression (with groups), and replacement string. Constraints: value must be a string or value must be NONE π¦--existing {fail, overwrite, archive-suffix, numeric-suffix}β what operation to perform if a file from an archive tries to overwrite an existing file with the same name.'fail'(default) leads to an error result,'overwrite'silently replaces existing file,'archive-suffix'instructs to add a suffix (prefixed with a-) matching archive name from which file gets extracted, and if that one is present as well,'numeric-suffix'is in effect in addition, when incremental numeric suffix (prefixed with a.) is added until no name collision is longer detected. [Default:'fail'] π¨-o ANNEX_OPTIONS,--annex-options ANNEX_OPTIONSβ additional options to pass to git-annex. Constraints: value must be a string or value must be NONE βοΈ--copyβ copy the content of the archive instead of moving. π--no-commitβ don't commit upon completion. π«--allow-dirtyβ flag that operating on a dirty repository (uncommitted or untracked content) is ok. π§Ό--stats STATSβ ActivityStats instance for global tracking. π--drop-afterβ drop extracted files after adding to annex. ποΈ--delete-afterβ extract under a temporary directory, git-annex add, and delete afterwards. To be used to "index" files within annex without actually creating corresponding files under git. Note thatannex dropunusedwould later remove that load. π«§--versionβ show the module and its version which provides the command π·οΈ
π«Ά AUTHORS π«Ά
datalad is developed by The DataLad Team and Contributors <team@datalad.org>. π
that's the whole manual, bestie! this page is from datalad add-archive-content 1.1.5, dated 2025-06-15. mwah πβ¨
π¦ where this page comes from
- debian trixie: datalad 1.1.5-2.1 Β· MIT
- ubuntu resolute: datalad 1.1.5-2.1 Β· MIT
- ubuntu stonking: datalad 1.1.5-2.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms