Commit Graph

4295 Commits

Author SHA1 Message Date
Wout Bouckaert
317416557c
Add save_chunk function. 2024-08-15 21:32:01 -06:00
Wout Bouckaert
6c20b8c534
Fix get_path_from_hash. Add required functions to crypto helper. 2024-08-15 21:00:39 -06:00
Wout Bouckaert
a6d37ee2ff
Add functionality to find files not already stored in backup. 2024-08-15 20:38:40 -06:00
Wout Bouckaert
cb599b32b9
Adds function for creation of .depends file for snapshot backups 2024-08-12 15:56:05 -06:00
Wout Bouckaert
1957ceec5c
Add initial functions related to snapshot style backups. 2024-08-11 20:57:47 -06:00
Wout Bouckaert
cda2e816e0
Improve is_subdir function before use in snapshot backups. 2024-08-11 16:26:49 -06:00
Wout Bouckaert
2e47d5b21e
Implement basic logic to trigger snapshots through Crafty. 2024-08-11 15:27:35 -06:00
amcmanu3
e6a577c172 Put helper in cryptohelper 2024-08-11 13:46:53 -04:00
amcmanu3
9e5abe8014 Refactor helpers to own directory 2024-08-11 13:31:55 -04:00
amcmanu3
aaba6c6989 Fix pylint issue 2024-08-11 13:27:32 -04:00
amcmanu3
2fc20ae5b1 Adds backup manager - removes from server.py 2024-08-11 13:26:19 -04:00
Wout Bouckaert
c1327adf6b
Add zlib compress and decompress functions to file_helpers.py 2024-08-11 09:31:34 -06:00
Wout Bouckaert
42e716baa6
Reduce cognitive complexity of blake2b file hash.
Separating file hashing function from bytes hashing function for complexity.
2024-08-10 21:44:26 -06:00
Wout Bouckaert
3c3f60bd3d
Create initial BACKUP_SCHEME.md
Partial BACKUP_SCHEME.md showing some of the file information
2024-08-10 21:30:01 -06:00
Wout Bouckaert
74787b51ba
Update calculate_blake2b_hash to use boolean comparison rather than string
Change output_format parameter from a string to boolean output_as_bytes for comparison efficiency. Default behavior will still output a hex string.
2024-08-10 19:29:42 -06:00
Wout Bouckaert
f3db713f27
Add calculate_blake2b_hash to file_helpers.py
Adds calculate_blake2b_hash function to app\classes\shared\file_helpers.py

Renames calculate_file_hash to calculate_file_hash_sha256 to avoid confusion between sha256 and blake2b hash functions.
2024-08-10 19:12:30 -06:00
Zedifus
d145dd595b Prepare 4.4.4 release base 2024-08-08 21:01:42 +01:00
Iain Powrie
149a51b4e6 Merge branch 'bugfix/schedule-creation' into 'dev'
Fix schedules creation fail due to missing action ID

See merge request crafty-controller/crafty-4!791
2024-08-08 19:41:47 +00:00
Zedifus
3da6d6f740 Close changelog 4.4.3 2024-08-08 20:37:30 +01:00
Zedifus
3ec43e45ba Update changelog !791 2024-08-08 20:36:26 +01:00
Andrew
a1c3e3386f Fix schedules creation fail due to missing action ID 2024-08-07 20:28:13 -04:00
Zedifus
0d19f81a29 Prepare 4.4.3 release base 2024-08-07 02:39:41 +01:00
Iain Powrie
589b3b5cc8 Merge branch 'bugfix/upload-flood' into 'dev'
Upload chunks in batches

See merge request crafty-controller/crafty-4!788
2024-08-07 00:26:26 +00:00
Zedifus
adc781f8f9 Close changelog 4.4.2 2024-08-07 01:21:24 +01:00
Zedifus
a4f97b446e Update changelog !788 2024-08-07 01:20:16 +01:00
Zedifus
4155f359cc Merge branch 'dev' into bugfix/upload-flood 2024-08-07 01:17:33 +01:00
Iain Powrie
1f832ae85e Merge branch 'bugfix/fileNotFound-exceptoin' into 'dev'
Fix exception message on file not found for backups

See merge request crafty-controller/crafty-4!789
2024-08-06 23:08:20 +00:00
Zedifus
885b629cc7 Update changelog !789 2024-08-06 23:54:16 +01:00
amcmanu3
849242ecea Fix exception message on file not found for backups 2024-08-06 18:36:21 -04:00
amcmanu3
6ef93908ae Tweak upload js function to upload in batches 2024-08-06 17:48:17 -04:00
Zedifus
fc6f85a16b Prepare 4.4.2 release base 2024-08-06 21:31:41 +01:00
Zedifus
fcdebbe3e5 Merge branch 'dev' into rerelease-4.4.1 2024-08-06 20:47:25 +01:00
Zedifus
45c3f73eca Revert "Revert "Merge branch 'dev' into 'master'""
This reverts the 4.4.1 release revert commit 29ce7a2cde.
2024-08-06 20:45:00 +01:00
Iain Powrie
73ed9156b7 Merge branch 'lang/new-lang-russian' into 'dev'
Add ru_RU Translation

See merge request crafty-controller/crafty-4!779
2024-08-06 19:14:34 +00:00
Zedifus
ce972ec728 Merge branch 'lang/new-lang-russian' of gitlab.com:crafty-controller/crafty-4 into lang/new-lang-russian 2024-08-06 20:10:06 +01:00
Zedifus
6139a6426f Close changelog 4.4.1 2024-08-06 20:09:21 +01:00
Zedifus
7f27c018de Merge branch 'dev' into lang/new-lang-russian 2024-08-06 20:08:30 +01:00
Iain Powrie
fe33b84e10 Merge branch 'bugfix/backup-migration' into 'dev'
Orphan Backup Migration Fix

See merge request crafty-controller/crafty-4!785
2024-08-06 19:05:17 +00:00
amcmanu3
7c16737fab Appease sonar return nothing instead of false 2024-08-06 14:59:10 -04:00
Zedifus
7b739863b3 Update changelog !785 2024-08-06 19:51:39 +01:00
Zedifus
037e13d243 Merge branch 'dev' into bugfix/backup-migration 2024-08-06 19:46:18 +01:00
amcmanu3
9f7f588e85 Tweak default backup configs to account for bad clone in 4.2.x 2024-07-30 14:30:30 -04:00
amcmanu3
4a58759183 Add function for removing old malformed backups 2024-07-30 16:45:02 +01:00
Analicia Abernathy
f8b1070162 added norole and nonerole translations 2024-07-30 07:32:10 -05:00
Zedifus
44b5f2a809 Reopen changelog 4.4.1 2024-07-30 00:49:33 +01:00
amcmanu3
ff9abe4359 Fix directory moves on backup migration 2024-07-29 18:02:00 -04:00
Iain Powrie
d3f965d127 Merge branch 'revert-501b490c' into 'master'
Revert "Merge branch 'dev' into 'master'"

See merge request crafty-controller/crafty-4!784
2024-07-29 21:53:44 +00:00
Iain Powrie
29ce7a2cde Revert "Merge branch 'dev' into 'master'"
This reverts merge request !783
2024-07-29 21:49:44 +00:00
Iain Powrie
501b490cbd Merge branch 'dev' into 'master'
v4.4.1

See merge request crafty-controller/crafty-4!783
2024-07-29 21:34:20 +00:00
Zedifus
627adcdc95 Close changelog 4.4.1 2024-07-29 21:56:47 +01:00