Commit 2f4432f
authored
Nextcloud add new backup options (#2709)
* Initial version with not tested script.
Signed-off-by: Sami Nieminen <[email protected]>
* Add Restic cloud backup to menu.
Signed-off-by: Sami Nieminen <[email protected]>
* Add menu options correctly.
Signed-off-by: Sami Nieminen <[email protected]>
* Make sure script files are named correctly.
Add instructions and warning messages about important account details.
Signed-off-by: Sami Nieminen <[email protected]>
* Fix backup file locations and pg dump user.
Add database connection details from config.
Load database config from ncdb function.
Signed-off-by: Sami Nieminen <[email protected]>
* Add database as variable.
Redefine exit logic to notify on success and failure.
Signed-off-by: Sami Nieminen <[email protected]>
* Add option to include /mnt/ncdata.
Signed-off-by: Sami Nieminen <[email protected]>
* Add restic excludes file which will automatically exclude preview files which can be regenerated after restore.
Move explainer to msg_box to make it multiline.
Signed-off-by: Sami Nieminen <[email protected]>
* Fix variable handling for full backup.
Add clearer explanation.
Signed-off-by: Sami Nieminen <[email protected]>
* Fix issues found while trying to use Azure as destination.
Restic will now be downloaded from official github repo.
Signed-off-by: Sami Nieminen <[email protected]>
* Add more details to restic install process and hash the executable so verify doesn't fail.
Signed-off-by: Sami Nieminen <[email protected]>
* Remove hash as for some reason it will not work in script, also might be unnecessary.
Edit version verification to clean version number before checking installed restic version.
Signed-off-by: Sami Nieminen <[email protected]>
* Remove unnecessary folder from end of Azure config.
Signed-off-by: Sami Nieminen <[email protected]>
* Move version check to correct location and fix version check variable.
Signed-off-by: Sami Nieminen <[email protected]>
* Fix to actually use the container name instead of account name per Azure best practices.
Signed-off-by: Sami Nieminen <[email protected]>
* Fix typo.
Add error handling to restic check part.
Signed-off-by: Sami Nieminen <[email protected]>
* Add script logging.
Signed-off-by: Sami Nieminen <[email protected]>
* Fix forgotten import for actual script.
Fix date variables not being variables after constructing the script.
Signed-off-by: Sami Nieminen <[email protected]>
* Fix all variables in script to be actual variables instead of hard coded values after cat.
Signed-off-by: Sami Nieminen <[email protected]>
* Add database variables to script.
Include settings, were lost for some reason...
Make alerts more clear for admins.
Fix pipefail.
Signed-off-by: Sami Nieminen <[email protected]>
---------
Signed-off-by: Sami Nieminen <[email protected]>1 parent 2aeaa93 commit 2f4432f
2 files changed
+515
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
| |||
0 commit comments