2020-03-16 18:17:16 +00:00
|
|
|
Repository URLs
|
|
|
|
~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
**Local filesystem** (or locally mounted network filesystem):
|
|
|
|
|
|
|
|
``/path/to/repo`` - filesystem path to repo directory, absolute path
|
|
|
|
|
|
|
|
``path/to/repo`` - filesystem path to repo directory, relative path
|
|
|
|
|
|
|
|
Also, stuff like ``~/path/to/repo`` or ``~other/path/to/repo`` works (this is
|
|
|
|
expanded by your shell).
|
|
|
|
|
|
|
|
Note: you may also prepend a ``file://`` to a filesystem path to get URL style.
|
|
|
|
|
|
|
|
**Remote repositories** accessed via ssh user@host:
|
|
|
|
|
2024-09-21 23:30:49 +00:00
|
|
|
``ssh://user@host:port/path/to/repo`` - absolute path
|
2022-05-18 15:31:10 +00:00
|
|
|
|
2020-03-16 18:17:16 +00:00
|
|
|
``ssh://user@host:port/./path/to/repo`` - path relative to current directory
|
|
|
|
|
|
|
|
``ssh://user@host:port/~/path/to/repo`` - path relative to user's home directory
|
|
|
|
|
2024-08-24 14:10:54 +00:00
|
|
|
**Remote repositories** accessed via sftp:
|
|
|
|
|
2024-09-21 23:30:49 +00:00
|
|
|
``sftp://user@host:port/path/to/repo`` - absolute path
|
2022-05-18 15:31:10 +00:00
|
|
|
|
2024-09-17 08:01:33 +00:00
|
|
|
For ssh and sftp URLs, the ``user@`` and ``:port`` parts are optional.
|
|
|
|
|
2024-09-21 23:30:49 +00:00
|
|
|
**Remote repositories** accessed via rclone:
|
|
|
|
|
|
|
|
``rclone://remote:path``
|
|
|
|
|
|
|
|
|
2020-03-16 18:17:16 +00:00
|
|
|
If you frequently need the same repo URL, it is a good idea to set the
|
|
|
|
``BORG_REPO`` environment variable to set a default for the repo URL:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
export BORG_REPO='ssh://user@host:port/path/to/repo'
|
|
|
|
|
2022-06-23 23:19:19 +00:00
|
|
|
Then just leave away the ``--repo`` option if you want
|
2020-03-16 18:17:16 +00:00
|
|
|
to use the default - it will be read from BORG_REPO then.
|