Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information