Commit Graph

128 Commits

Author SHA1 Message Date
Boris Bera
8de8d0070e
chore: move lockfile code to internal module
In a future commit, I'll need the lockfile code to access the config
file. This solves an import cycle.
2024-11-10 13:37:59 -05:00
Boris Bera
ccca7c850f
Merge branch 'master' into lockfile-path-config 2024-11-10 13:24:42 -05:00
Boris Bera
6895df1c83
fix(config): fix config marshaling producing unreadable config file (#402)
There are two practical changes when the config gets updated:
- The `forgetoption` and `configoption` bug is now gone
- Superfluous config keys no longer get written out
2024-11-04 15:20:42 +01:00
Boris Bera
41e4e4a5f3
fix(cron): crash when errors are encountered during a backup (#403) 2024-10-17 13:49:45 +02:00
592d1093ac bump version 2024-08-28 17:32:23 +02:00
Boris Bera
776638e6fe
fix(backend): treat all special chars as _ in env (#382) 2024-08-28 17:25:06 +02:00
Boris Bera
bc74d3f13e
Add option to crash autorestic when key is missing instead of generating a new key (#383)
* feat(backend): add requireKey option to backend

This option will prevent `autorestic` from generating a key and will
cause it to crash instead. This is intended for use cases where you want
to provision the key yourself and don't want `autorestic` to
accidentally generate one for you.

* doc(backend): document requireKey
2024-08-28 17:21:01 +02:00
Boris Bera
f6aa45fd6c
feat(lockfile): allow changing the lockfile path 2024-07-02 21:12:26 -04:00
e4b33cad1f
version bump 2024-03-28 09:29:39 +01:00
Tucker Kern
a82273ec13
Allow REST backend with docker volumes (#366) 2024-03-27 20:20:13 +01:00
6e34196220
Update config.go 2024-03-13 12:40:11 +01:00
edb3ba35d8
Update config.go 2024-03-12 15:27:11 +01:00
Stuart Hickinbottom
13aa560fda
Add PreValidate hook (#359)
Fix #332.

This adds a new "PreValidate" hook that is executed before checking
the backup location. This allows, for example, mounting a remote
source to make the directories of the location available.

"PreValidate" is added as a new hook to avoid any breakage that might
have been caused by changing the behaviour of the "before" hook.

Documentataion updates included.
2024-03-12 15:22:43 +01:00
rdelaage
bbb1c85cad
Fix upgrade command (#259)
fix #191

Co-authored-by: Romain de Laage <romain.delaage@rdelaage.ovh>
2024-02-15 14:27:37 +01:00
rdelaage
4848702929
Use options on exec command (#253)
Co-authored-by: Romain de Laage <romain.delaage@rdelaage.ovh>
2024-02-15 14:23:43 +01:00
b5604b8b9f
update deps (#353) 2024-02-09 14:18:24 +01:00
ced20801c1
bump version 2024-01-11 19:17:53 +01:00
Christoph Loy
f67bb7f73c
Bump version to 1.7.9 (#325) 2023-10-02 14:09:34 +02:00
2c5266c9a0
fix build system 2023-03-05 17:22:03 +01:00
087b293c39
version bump 2023-03-02 15:03:57 +01:00
Andreas
112a69d743
Allow env variables in path for rest backend (#280) 2023-03-02 15:00:39 +01:00
c82db56069
Update config.go 2023-01-19 09:44:05 +01:00
Mariusz Kozakowski
1512db5b55
Fix regexp for AddedExtractor (#284)
Co-authored-by: mariom <11mariom@gmail.com>
2023-01-18 22:39:12 +01:00
74979e9a2a
Update config.go 2022-10-17 15:03:17 +02:00
Romain de Laage
3732dcf6ff
Check for errors on forget after having backuped (#241) 2022-10-17 15:02:47 +02:00
4d9a2b828e
Update config.go 2022-09-13 15:16:21 +02:00
Chosto
b830667264
Use options when calling check or init (#199) 2022-09-13 15:15:02 +02:00
John Burkhardt
83eeb847ac
Add command line flag to override docker image. (#233) 2022-09-13 15:04:12 +02:00
Romain de Laage
2f407cf211
Add forget for copy backend (#223)
fix #221
2022-08-24 12:09:32 +02:00
489f3078fe
bump version 2022-08-24 12:03:11 +02:00
Romain de Laage
e07dd0d991
Don't check if path is a directory (#220)
We only run a stat on the path to check there is no error
2022-08-22 17:28:38 +02:00
kenc
2b9dc9f17c
Add test for locking behaviour (#211) 2022-06-27 09:03:34 +02:00
kenc
465bc037c2
Add lock tests (#209)
* Add lock tests

* Refactor setLock to accept key value pairs

This allows SetCron and Lock to use the same function setLockValue. It
also removes the need to call getLock explicitly in tests by returning
the lock object.
2022-06-06 12:59:47 +02:00
kenc
37a043afff
Add location unit tests (#208) 2022-06-02 17:05:44 +02:00
kenc
e91b632181
Add backend unit tests (#207) 2022-06-01 14:58:38 +02:00
kenc
2b30998b9a
Add options parsing unit tests (#205)
* Add options parsing unit tests

* Refactor into subtests
2022-05-30 12:56:25 +02:00
3bc091f826
lean flag 2022-04-27 00:55:31 +02:00
5bcf5c9217
1.7.0 (#188)
* stream the output (#186)

* dont duplicate global flags (#187)

* docs for tagging

* fix self update path (#190)

* version bump & changelog
2022-04-27 00:48:52 +02:00
ff2e3714d1
1.6.2 2022-04-14 17:44:54 +02:00
434862ed4e
1.6.0 (#180)
* fix for #178

* restore options

* error codes

* update docs

* forget docs

* add option to auto forget

* add copy option

* update go version to enable generics

* copy docs

* changelog & version bump
2022-04-14 11:51:32 +02:00
8b74a98836
better error handling 2022-03-18 13:06:19 +01:00
8a713e497d
add ssh & update deps 2022-03-12 14:13:29 +01:00
5afad86e37
1.5.6 2022-03-10 16:36:26 +01:00
d85470459f
fix home directory 2022-02-16 21:58:09 +01:00
db9f5dea66
1.5.4 2022-02-16 21:42:54 +01:00
92feaef5bb
version bump 2022-02-16 21:28:13 +01:00
2a7e233cdb
only check on config if it is getting used 2022-02-16 21:22:42 +01:00
ec9e2aebcd
1.5.2 2022-02-13 16:25:09 +01:00
Jan
65ba1f6ac1 Make a copy of config before overriding it 2022-02-09 20:35:29 +01:00
982f9e0b5c
better error handling 2021-12-06 12:13:18 +01:00