VictoriaMetrics/lib/backup
Aliaksandr Valialkin 9b529c2742
lib/backup/azremote: follow-up for 5fd3aef549
- Mention that credentials can be configured via env variables at both vmbackup and vmrestore docs.

- Make clear that the AZURE_STORAGE_DOMAIN env var is optional at https://docs.victoriametrics.com/vmbackup/#providing-credentials-via-env-variables

- Use string literals as is for env variable names instead of indirecting them via string constants.
  This makes easier to read and understand the code. These environment variable names aren't going to change
  in the future, so there is no sense in hiding them under string constants with some other names.

- Refer to https://docs.victoriametrics.com/vmbackup/#providing-credentials-via-env-variables in error messages
  when auth creds are improperly configured. This should simplify figuring out how to fix the error.

- Simplify the code a bit at FS.newClient(), so it is easier to follow it now.
  While at it, remove the check when superflouos environment variables are set, since it is too fragile
  and it looks like it doesn't help properly configuring vmbackup / vmrestore.

- Remove envLookuper indirection - just use 'func(name string) (string, bool)' type inline.
  This simplifies code reading and understanding.

- Split TestFSInit() into TestFSInit_Failure() and TestFSInit_Success(). This simplifies the test code,
  so it should be easier to maintain in the future.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/6518
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5984
2024-07-17 17:55:39 +02:00
..
actions lib/backup: add -s3TLSInsecureSkipVerify command-line flag (#6318) 2024-05-22 16:40:06 +02:00
azremote lib/backup/azremote: follow-up for 5fd3aef549 2024-07-17 17:55:39 +02:00
backupnames fix removing storage data dir before restoring from backup (#598) 2023-07-06 22:32:12 -07:00
common all: replace old https://docs.victoriametrics.com/vmbackup.html url with the new one - https://docs.victoriametrics.com/vmbackup/ 2024-04-18 01:58:00 +02:00
fscommon lib/backup/common: consistently use canonical path with / directory separators at Part.Path 2023-09-19 00:36:32 +02:00
fslocal lib/backup/common: consistently use canonical path with / directory separators at Part.Path 2023-09-19 00:36:32 +02:00
fsnil lib/backup: add MustStop() method for all remote filesystems 2020-10-09 15:32:13 +03:00
fsremote lib/backup/common: consistently use canonical path with / directory separators at Part.Path 2023-09-19 00:36:32 +02:00
gcsremote lib/backup: consistently use path.Join() when constructing paths for s3, gs and azblob 2023-12-04 17:25:41 +02:00
s3remote lib/backup/s3remote: fixed credsFilePath flag (#6488) 2024-06-14 14:14:58 +02:00