.TH "datalad save" "1" "2024\-03\-10" "datalad save 0.19.6" .SH NAME \fBdatalad save\fR \- save the current state of a dataset .SH SYNOPSIS .nh .HP \fBdatalad save\fR [-h] [-m\~MESSAGE] [-d\~DATASET] [-t\~ID] [-r] [-R\~LEVELS] [-u] [-F\~MESSAGE_FILE] [--to-git] [-J\~NJOBS] [--amend] [--version] [PATH ...] .hy .SH DESCRIPTION Saving the state of a dataset records changes that have been made to it. This change record is annotated with a user\-provided description. Optionally, an additional tag, such as a version, can be assigned to the saved state. Such tag enables straightforward retrieval of past versions at a later point in time. .PP .TP NOTE Before Git v2.22, any Git repository without an initial commit located inside a Dataset is ignored, and content underneath it will be saved to the respective superdataset. DataLad datasets always have an initial commit, hence are not affected by this behavior. .PP .SS Examples .PP Save any content underneath the current directory, without altering any potential subdataset:: .PP % datalad save . .PP Save specific content in the dataset:: .PP % datalad save myfile.txt .PP Attach a commit message to save:: .PP % datalad save \-m 'add file' myfile.txt .PP Save any content underneath the current directory, and recurse into any potential subdatasets:: .PP % datalad save . \-r .PP Save any modification of known dataset content in the current directory, but leave untracked files (e.g. temporary files) untouched:: .PP % datalad save \-u . .PP Tag the most recent saved state of a dataset:: .PP % datalad save \-\-version\-tag 'bestyet' .PP Save a specific change but integrate into last commit keeping the already recorded commit message:: .PP % datalad save myfile.txt \-\-amend .SH OPTIONS .TP PATH path/name of the dataset component to save. If given, only changes made to those components are recorded in the new state. Constraints: value must be a string or value must be NONE .TP \fB-h\fR, \fB--help\fR, \fB--help-np\fR show this help message. --help-np forcefully disables the use of a pager for displaying the help message .TP \fB-m\fR MESSAGE, \fB--message\fR MESSAGE a description of the state or the changes made to a dataset. Constraints: value must be a string or value must be NONE .TP \fB-d\fR \fI\s-1DATASET\s0\fR, \fB--dataset\fR \fI\s-1DATASET\s0\fR "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 .TP \fB-t\fR ID, \fB--version-tag\fR ID an additional marker for that state. Every dataset that is touched will receive the tag. Constraints: value must be a string or value must be NONE .TP \fB-r\fR, \fB--recursive\fR if set, recurse into potential subdatasets. .TP \fB-R\fR LEVELS, \fB--recursion-limit\fR LEVELS limit recursion into subdatasets to the given number of levels. Constraints: value must be convertible to type 'int' or value must be NONE .TP \fB-u\fR, \fB--updated\fR if given, only saves previously tracked paths. .TP \fB-F\fR \fI\s-1MESSAGE_FILE\s0\fR, \fB--message-file\fR \fI\s-1MESSAGE_FILE\s0\fR take the commit message from this file. This flag is mutually exclusive with -m. Constraints: value must be a string or value must be NONE .TP \fB--to-git\fR flag whether to add data directly to Git, instead of tracking data identity only. Use with caution, there is no guarantee that a file put directly into Git like this will not be annexed in a subsequent save operation. If not specified, it will be up to git-annex to decide how a file is tracked, based on a dataset's configuration to track particular paths, file types, or file sizes with either Git or git-annex. (see https://git-annex.branchable.com/tips/largefiles). .TP \fB-J\fR NJOBS, \fB--jobs\fR NJOBS how many parallel jobs (where possible) to use. "auto" corresponds to the number defined by 'datalad.runtime.max-annex-jobs' configuration item NOTE: This option can only parallelize input retrieval (get) and output recording (save). DataLad does NOT parallelize your scripts for you. Constraints: value must be convertible to type 'int' or value must be NONE or value must be one of ('auto',) .TP \fB--amend\fR if set, changes are not recorded in a new, separate commit, but are integrated with the changeset of the previous commit, and both together are recorded by replacing that previous commit. This is mutually exclusive with recursive operation. .TP \fB--version\fR show the module and its version which provides the command .SH AUTHORS datalad is developed by The DataLad Team and Contributors .