restic/internal/backend/b2
Michael Eischer 1ccab95bc4 b2: Support file hiding instead of deleting them permanently
Automatically fall back to hiding files if not authorized to permanently
delete files. This allows using restic with an append-only application
key with B2.  Thus, an attacker cannot directly delete backups with the
API key used by restic.

To use this feature create an application key without the deleteFiles
capability. It is recommended to restrict the key to just one bucket.
For example using the b2 command line tool:

    b2 create-key --bucket <bucketName> <keyName> listBuckets,readFiles,writeFiles,listFiles

Suggested-by: Daniel Gröber <dxld@darkboxed.org>
2022-11-05 20:10:45 +01:00
..
b2.go b2: Support file hiding instead of deleting them permanently 2022-11-05 20:10:45 +01:00
b2_test.go redacted keys/token in backend config debug log 2022-07-02 18:47:35 +02:00
config.go redacted keys/token in backend config debug log 2022-07-02 18:47:35 +02:00
config_test.go Moves files 2017-07-23 14:19:13 +02:00