Commit graph

1406 commits

Author SHA1 Message Date
Houkime
498208f083 test(backups): implement get_folders() for bitwarden 2023-07-17 16:05:00 +03:00
Houkime
840572f82c test(backups): test 2-folder restoration 2023-07-17 16:05:00 +03:00
Houkime
f3bfa2293c test(backups): actually back up 2 folders 2023-07-17 16:05:00 +03:00
Houkime
b21d63be63 refactor(backups): set a list of folders for our dummy service 2023-07-17 16:05:00 +03:00
Houkime
3aefbaaf0b refactor(backups): actually accept a list of folders 2023-07-17 16:05:00 +03:00
Houkime
f0aabec947 refactor(backups): make api accept a list of folders 2023-07-17 16:05:00 +03:00
Houkime
d1e1039519 refactor(backups): make a dedicated get_folders() function 2023-07-17 16:05:00 +03:00
Houkime
507cdb3bbd refactor(services): rename get_location() to get_drive() 2023-07-17 16:05:00 +03:00
Houkime
6132f1bb4c test(backups): register dummy service 2023-07-17 16:05:00 +03:00
Houkime
1940b29161 feature(backups): automatic backup 2023-07-17 16:05:00 +03:00
Houkime
5e9c651c65 test(backups): test autobackup timing 2023-07-17 16:05:00 +03:00
Houkime
b305c19559 refactor(backups): split out storage 2023-07-17 16:05:00 +03:00
Houkime
ef57e25a26 test(backups): test that we do use cache 2023-07-17 16:05:00 +03:00
Houkime
f9eaaab929 feature(backups): enable snapshot cache usage 2023-07-17 16:05:00 +03:00
Houkime
2c510ae884 feature(backups): add snapshot cache sync functions 2023-07-17 16:05:00 +03:00
Houkime
ed0861aacc test(backups): test last backup date retrieval 2023-07-17 16:05:00 +03:00
Houkime
054b07baa3 feature(backups): add a datetime validator function for huey autobackups 2023-07-17 16:05:00 +03:00
Houkime
343fda0630 test(backups): test setting autobackup period 2023-07-17 16:05:00 +03:00
Houkime
0a4338596b test(backups): test setting services as enabled for autobackups 2023-07-17 16:05:00 +03:00
Houkime
79b9bb352a feature(backups): methods for autobackup period setting and getting 2023-07-17 16:05:00 +03:00
Houkime
951bb8d5ec fix(backups): remove self from static method 2023-07-17 16:05:00 +03:00
Houkime
d354f4ac0b feature(backups): check, set and unset service autobackup status 2023-07-17 16:05:00 +03:00
Houkime
43b6ebd04d feature(backups): cache snapshots and last backup timestamps 2023-07-17 16:05:00 +03:00
Houkime
d57dc3f7d2 test(backups): test that we do return snapshot on backup 2023-07-17 16:05:00 +03:00
Houkime
35a4fec9d4 feature(backups): return snapshot info from backup function 2023-07-17 16:05:00 +03:00
Houkime
a134009165 feature(backups): huey task to back up 2023-07-17 16:05:00 +03:00
Houkime
d972fdc3cc refactor(backups): make backups stateless 2023-07-17 16:05:00 +03:00
Houkime
6f8f5cbb9e feature(backups): repo init tracking 2023-07-17 16:05:00 +03:00
Houkime
02deae217d feature(backups): provider storage and retrieval 2023-07-17 16:05:00 +03:00
Houkime
48dc63a590 refactor(backups): add a provider model for redis storage 2023-07-17 16:05:00 +03:00
Houkime
873bc8282e refactor(backups): redis model storage utils 2023-07-17 16:05:00 +03:00
Houkime
c928263fce feature(backups): load from json 2023-07-17 16:05:00 +03:00
Houkime
0847e16089 feat(backups): local secret generation and storage 2023-07-17 16:05:00 +03:00
Houkime
60dcde458c feat(backups): sizing up snapshots 2023-07-17 16:05:00 +03:00
Houkime
1d403b0e94 test(backups): test restoring a file 2023-07-17 16:05:00 +03:00
Houkime
c8a8d45110 feat(backups): add restore_snapshot and restore_service_from_snapshot 2023-07-17 16:05:00 +03:00
Houkime
ff6bc2a142 feat(backups): a better error on failed snapshot retrieval 2023-07-17 16:05:00 +03:00
Houkime
e56907f2cd feat(backups): return proper snapshot structs when listing 2023-07-17 16:05:00 +03:00
Houkime
a0a32a7f37 test(backups): reenable snapshot testing 2023-07-17 16:05:00 +03:00
Houkime
228eab44bb feat(backups): throw an error on a failed backup 2023-07-17 16:05:00 +03:00
Houkime
348ece8b9c fix(backups): singleton metaclass was screwing with tests 2023-07-17 16:05:00 +03:00
Houkime
a280e5c999 test(backups): localfile repo by default in tests 2023-07-17 16:05:00 +03:00
Houkime
add4e21f39 feature(backups): throw an error if repo init fails 2023-07-17 16:05:00 +03:00
Houkime
b27f19b201 test(backups): basic file backend init test 2023-07-17 16:05:00 +03:00
Houkime
5efb351159 feature(backups): register localfile backend 2023-07-17 16:05:00 +03:00
Houkime
529608d52e feature(backups): localfile repo 2023-07-17 16:05:00 +03:00
Houkime
29c4b74a86 test(backups): test repo init 2023-07-17 16:05:00 +03:00
Houkime
3f30469532 refactor(backups): repo init service method 2023-07-17 16:05:00 +03:00
Houkime
a405eddbcf refactor(backups): add repo init 2023-07-17 16:05:00 +03:00
Houkime
5371c7feef refactor(backups): snapshotlist and local secret groundwork 2023-07-17 16:05:00 +03:00