borgbackup/docs/usage/general
Thomas Waldmann 5e27122735
replace create --hostname/--username with BORG_HOSTNAME/BORG_USERNAME env vars, fixes #9651
The --hostname/--username options on borg create (added in 2.0.0b21, #9402)
are removed in favor of the BORG_HOSTNAME / BORG_USERNAME environment variables.

When set, these override the hostname/username stored in newly created archives
and used by the {hostname}/{user} placeholders (so they also apply to archive
names, prune --glob-archives, check, etc.). Useful to run borg on host A but
impersonate host B.

The env vars are read at the point of use; fqdn/hostid (see BORG_HOST_ID) and
the auto-detection are intentionally left untouched.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 21:07:31 +02:00
..
archive-specification.rst.inc docs: archive specification, FAQ, fixes #9248, fixes #9053 2026-03-06 21:36:05 +01:00
config.rst.inc improve configuration precedence docs 2026-03-10 18:36:34 +01:00
date-time.rst.inc Renames --since to --from 2026-06-20 18:36:59 +02:00
environment.rst.inc replace create --hostname/--username with BORG_HOSTNAME/BORG_USERNAME env vars, fixes #9651 2026-06-25 21:07:31 +02:00
file-metadata.rst.inc fixed typos and grammar (AI) 2025-09-23 14:56:23 +02:00
file-systems.rst.inc fixed typos and grammar (AI) 2025-09-23 14:56:23 +02:00
logging.rst.inc fixed typos and grammar (AI) 2025-09-23 14:56:23 +02:00
positional-arguments.rst.inc fixed typos and grammar (AI) 2025-09-23 14:56:23 +02:00
repository-locations.rst.inc manual corrections/reverts 2025-09-23 14:56:35 +02:00
repository-urls.rst.inc support "rest:" repository URLs, fixes #9593 2026-06-01 21:11:55 +02:00
resources.rst.inc update general docs 2026-06-16 14:46:57 +02:00
return-codes.rst.inc fixed typos and grammar (AI) 2025-09-23 14:56:23 +02:00
units.rst.inc [DOCS] #4587 – Make Sphinx warnings break docs build 2020-03-16 19:22:59 +01:00