Houkime
af014e8b83
feature(backup): support for perma-active services and services with no existing data
2024-09-13 12:11:56 +00:00
Houkime
2ef674a037
refactor(services): PARTIAL migrate get_all_services
2024-09-13 12:11:56 +00:00
Inex Code
1259c081ef
style: Reformat with new Black version
2024-07-26 22:59:44 +03:00
Houkime
b39558ea1f
fix(backups): report error in the error field of the job
2024-03-18 17:00:55 +00:00
Houkime
4757bedc4e
test(backup): add tests for cache reloads
2024-02-13 14:12:41 +02:00
Houkime
bc0602bfcb
fix(backup): rework caching so that there are rarer api calls
2024-02-13 14:12:41 +02:00
Inex Code
23adf95898
style: Remove unused import
2024-01-24 19:31:56 +04:00
Houkime
e13ad71a93
feature(backups): remove all json logic
2024-01-24 14:36:44 +00:00
Houkime
7ec62a8f79
fix(backups): do not autobackup disabled services
2024-01-12 14:35:15 +00:00
Houkime
993b58d52d
beauty(backup): remove stray comments and imports, format
2023-11-20 11:29:42 +00:00
Houkime
f1a452009a
refactor(backups): only async snapshot trimming
2023-11-17 15:39:21 +00:00
Houkime
25378273eb
refactor(backups): also batch the forget_all_snapshots command
2023-11-17 14:48:41 +00:00
Houkime
615e962965
feature(backups): batched removals of snapshots
2023-11-17 14:36:11 +00:00
Inex Code
c3cec36ad4
style: formatting
2023-11-13 19:36:12 +03:00
Houkime
8caf7e1b24
fix(backups): do not infinitely retry automatic backup if it errors out
2023-11-10 10:20:27 +00:00
Houkime
26c0a8fafe
feature(jobs): set 1 hour ttl for successful autobackup jobs
2023-10-10 20:25:14 +03:00
Inex Code
8b840d4c2c
fix(backups): expose snapshot reason and set the default value
2023-09-09 09:52:20 +03:00
Inex Code
39baa3725b
Merge remote-tracking branch 'origin/master' into quotas
2023-09-09 03:36:17 +03:00
Inex Code
dedd6a9cc9
refactor(backups): use restic-like rotation policy
2023-09-09 03:26:41 +03:00
Houkime
56be3d9c31
fix(backup): trim auto-snapshots on setting the quotas
2023-09-08 16:22:53 +00:00
Houkime
1fc47b049d
refactor(backups): clean up caps code
2023-08-28 17:23:21 +00:00
Houkime
9207f5385c
feature(backups): actual finegrained quotas
2023-08-28 17:02:45 +00:00
Houkime
1333aad57d
feature(backups): temporarily revert restore job status to created for inplace restore to run backup
2023-08-23 14:35:03 +00:00
Houkime
c68239044f
feature(backups): report status text for restore jobs
2023-08-23 14:18:33 +00:00
Houkime
02b03cf401
feature(backups): report the error text in a job
2023-08-23 14:02:07 +00:00
Houkime
b2c7e8b73a
feature(backups): caps for autobackups
2023-08-21 12:45:31 +00:00
Houkime
027a37bb47
feature(backup): remember the reason for making a snapshot
2023-08-21 11:11:56 +00:00
Houkime
cfa7f4ae59
feature(backups): add full repo erasure capability
2023-07-26 16:45:08 +00:00
Houkime
ffec344ba8
test(backups): make the test repo overridable by envs
2023-07-26 14:26:04 +00:00
Houkime
aa7cc71557
feature(backups):add a function to set provider from env
2023-07-26 11:54:17 +00:00
Inex Code
e0a5ecdd9d
style: reformat
2023-07-20 19:37:01 +03:00
Inex Code
0245d629fd
refactor(backups): linting
2023-07-20 18:24:26 +03:00
Inex Code
2df448a4a9
fix(backups): Do not shut down the service during backup
...
We do not want the user to expirience outages during automatic backups.
Generally, they are not even needed.
We should use hooks to service-specific tasks, such as
creating the database dump, so we don't have to shut down Postgres.
2023-07-20 17:11:02 +03:00
Houkime
f4ac3d29a9
feature(backup):remove code for finegrained autobackup control
2023-07-19 15:36:25 +00:00
Houkime
466160dbf9
feature(backup):disable finegrain control over services to back up
2023-07-19 15:36:25 +00:00
Inex Code
3067d353d8
fix(backups): Do not remove failsafe snapshot after recovery
2023-07-19 15:59:29 +03:00
Houkime
a303e5ce37
Merge branch 'restic-rewrite' of https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api into restic-rewrite
2023-07-19 10:35:30 +00:00
Inex Code
8b504993d0
fix(backups): backup strategies were unused
2023-07-18 20:15:22 +03:00
Houkime
45011450c5
feature(backup):calculate needed space for inplace restoration
2023-07-17 16:05:00 +03:00
Houkime
b001e198bf
feature(backups): stop services before restores
2023-07-17 16:05:00 +03:00
Houkime
40ad1b5ce4
feature(backups): stop services before backups
2023-07-17 16:05:00 +03:00
Houkime
95e4296d0b
feature(backups): implement inplace restore strategy
2023-07-17 16:05:00 +03:00
Houkime
59fe386463
feature(backups): restore strategies enum
2023-07-17 16:05:00 +03:00
Houkime
02e3c9bd5e
feature(backups): forgetting snapshots
2023-07-17 16:05:00 +03:00
Inex Code
21c5f6814c
style: fix styling
2023-07-17 16:05:00 +03:00
Houkime
e8f1f39b18
refactor(backups): rename service_snapshot_size to snapshot_restored_size
2023-07-17 16:05:00 +03:00
Houkime
f804c88fa6
refactor(backups): remove the by-service getting of cached snapshots
2023-07-17 16:05:00 +03:00
Houkime
6004977845
refactor(backups): rename force_snapshot_reload to force_snapshot_cache_reload
2023-07-17 16:05:00 +03:00
Houkime
3551813b34
refactor(backups): merge sync_all_snapshots with force_snapshot_reload
2023-07-17 16:05:00 +03:00
Houkime
ce55416b26
refactor(backups): straighten get_all_snapshots
2023-07-17 16:05:00 +03:00