mirror of
https://github.com/restic/restic.git
synced 2026-07-05 06:54:17 +00:00
azure: add SAS authentication option
This commit is contained in:
committed by
Michael Eischer
parent
6cbeb4a9f9
commit
64a7ec5341
@@ -499,6 +499,17 @@ account name and key as follows:
|
||||
$ export AZURE_ACCOUNT_NAME=<ACCOUNT_NAME>
|
||||
$ export AZURE_ACCOUNT_KEY=<SECRET_KEY>
|
||||
|
||||
or
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ export AZURE_ACCOUNT_NAME=<ACCOUNT_NAME>
|
||||
$ export AZURE_ACCOUNT_SAS=<SAS_TOKEN>
|
||||
|
||||
With the later form, ensure your ``SAS_TOKEN`` does not start with a leading
|
||||
``?``. If the generated token starts with a leading ``?`` it is safe to just
|
||||
delete the first character (the ``?``) before use.
|
||||
|
||||
Afterwards you can initialize a repository in a container called ``foo`` in the
|
||||
root path like this:
|
||||
|
||||
|
||||
@@ -593,6 +593,7 @@ environment variables. The following lists these environment variables:
|
||||
|
||||
AZURE_ACCOUNT_NAME Account name for Azure
|
||||
AZURE_ACCOUNT_KEY Account key for Azure
|
||||
AZURE_ACCOUNT_SAS Shared access signatures (SAS) for Azure
|
||||
|
||||
GOOGLE_PROJECT_ID Project ID for Google Cloud Storage
|
||||
GOOGLE_APPLICATION_CREDENTIALS Application Credentials for Google Cloud Storage (e.g. $HOME/.config/gs-secret-restic-key.json)
|
||||
|
||||
Reference in New Issue
Block a user