-
How-to guides
- π₯ Set up backups
- ποΈ Make per-application backups
- π Provide your passwords
- βοΈ Make backups redundant
- π Deal with very large backups
- π Inspect your backups
- π¨ Monitor your backups
- π€ Extract a backup
- ποΈ Backup your databases
- πΈ Snapshot your filesystems
- π§Ή Add preparation and cleanup steps
- πΎ Backup to a removable drive/server
- π§ Run arbitrary Borg commands
- π₯ Customize warnings/errors
- π¦ Upgrade borgmatic/Borg
- ποΈ Develop on borgmatic
-
Reference guides
- βοΈ Configuration
- π» Command-line
- π Source code
New in version 1.9.0 borgmatic uses a runtime directory for temporary file storage, such as for streaming database dumps to Borg, creating filesystem snapshots, saving bootstrap metadata, and so on. To determine the path for this runtime directory, borgmatic probes the following values:
- The
user_runtime_directoryborgmatic configuration option. - The
XDG_RUNTIME_DIRenvironment variable, usually/run/user/$UID(where$UIDis the current user's ID), automatically set by PAM on Linux for a user with a session. - New in version 1.9.2The
RUNTIME_DIRECTORYenvironment variable, set by systemd ifRuntimeDirectory=borgmaticis added to borgmatic's systemd service file. - New in version 1.9.1The
TMPDIRenvironment variable, set on macOS for a user with a session, among other operating systems. - New in version 1.9.1The
TEMPenvironment variable, set on various systems. - New in version 1.9.2
Hard-coded
/tmp. Prior to version 1.9.2This was instead hard-coded to/run/user/$UID.
You can see the runtime directory path that borgmatic selects by running with
--verbosity 2 and looking for Using runtime directory in the output.
Regardless of the runtime directory selected, borgmatic stores its files
within a borgmatic subdirectory of the runtime directory. Additionally, in
the case of TMPDIR, TEMP, and the hard-coded /tmp, borgmatic creates a
randomly named subdirectory in an effort to reduce path collisions in shared
system temporary directories.
Prior to version 1.9.0
borgmatic created temporary streaming database dumps within the ~/.borgmatic
directory by default. At that time, the path was configurable by the
borgmatic_source_directory configuration option (now deprecated).
Improve this documentation
Have an idea on how to make this documentation even better? Use our issue tracker to send your feedback!