DATALAD-SAVE(1)

πŸ’Ύ datalad save(1) β€” the datalad save girlie is here to help

okay bestie, welcome to the datalad save manual page (that's the manual name right there, we're folding it in like a cute lil intro πŸ’–). This is the General Commands Manual, and it's got everything you need. Let's go ✨


🌟 NAME 🌟

datalad save β€” literally just save the current state of a dataset. that's it. that's the whole vibe 🫢


πŸŽ€ SYNOPSIS πŸŽ€

datalad save [-h] [-m MESSAGE] [-d DATASET] [-t ID] [-r] [-R LEVELS]
       [-u] [-F MESSAGE_FILE] [--to-git] [-J NJOBS] [--amend]
       [--version] [PATH ...]

look at all those flags, she's stunning πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so like β€” saving the state of a dataset records changes that have been made to it. main character behaviour, honestly πŸ‘‘

This change record is annotated with a user-provided description. and optionally, you can slap an additional tag on the saved state β€” like a version β€” and then later you can go back and grab past versions super easily. it's giving time capsule πŸ•°οΈβœ¨

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. no cap, that's just how it is 🧚

πŸ’« Examples

Save any content underneath the current directory, without altering any potential subdataset:

% datalad save .

Save specific content in the dataset:

% datalad save myfile.txt

Attach a commit message to save:

% datalad save -m 'add file' myfile.txt

Save any content underneath the current directory, and recurse into any potential subdatasets:

% datalad save . -r

Save any modification of known dataset content in the current directory, but leave untracked files (e.g. temporary files) untouched:

% datalad save -u .

Tag the most recent saved state of a dataset:

% datalad save --version-tag 'bestyet'

Save a specific change but integrate into last commit keeping the already recorded commit message:

% datalad save myfile.txt --amend

okay those examples ate, fr fr πŸ”₯


✨ OPTIONS ✨

  • 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 πŸ“
  • -h, --help, --help-np β€” show this help message. --help-np forcefully disables the use of a pager for displaying the help message πŸ™ˆ
  • -m MESSAGE, --message MESSAGE β€” a description of the state or the changes made to a dataset. Constraints: value must be a string or value must be NONE πŸ’Œ
  • -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 🌈
  • -t ID, --version-tag 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 🏷️
  • -r, --recursive β€” if set, recurse into potential subdatasets. going deeper, bestie πŸŒ€
  • -R LEVELS, --recursion-limit LEVELS β€” limit recursion into subdatasets to the given number of levels. Constraints: value must be convertible to type int or value must be NONE ⭐
  • -u, --updated β€” if given, only saves previously tracked paths. no randos allowed πŸ™…β€β™€οΈ
  • -F MESSAGE_FILE, --message-file MESSAGE_FILE β€” 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 πŸ“„
  • --to-git β€” 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). πŸ’€ lowkey risky, be careful with this one
  • -J NJOBS, --jobs 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',) ⚑
  • --amend β€” 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. 🫣 rewriting history, iconic
  • --version β€” show the module and its version which provides the command πŸ‘‘

πŸ‘‘ AUTHORS πŸ‘‘

datalad is developed by The DataLad Team and Contributors <team@datalad.org>. literal legends πŸ’œ


🧚 sign-off 🧚

this has been datalad save version 1.1.5, dated 2025-06-15, and yes it's still the General Commands Manual page for datalad save(1). go forth and save your state, bestie β€” you got this πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from