Skip to content

Commit 2f4432f

Browse files
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

File tree

2 files changed

+515
-0
lines changed

2 files changed

+515
-0
lines changed

not-supported/not-supported_menu.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ $CHECKLIST_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
3232
"NTFS Mount" "(Mount NTFS drives)" OFF \
3333
"NTFS Veracrypt" "(Format, encrypt and mount Veracrypt NTFS drives)" OFF \
3434
"Backup Viewer" "(View your Backups)" OFF \
35+
"Restic Cloud Backup" "(Backup your server using Restic to multiple clouds)" OFF \
3536
"Daily Backup Wizard" "(Create a Daily Backup script)" OFF \
3637
"Firewall" "(Setting up a firewall)" OFF \
3738
"Monitor Link Shares" "(Monitors the creation of link shares)" OFF \
@@ -76,6 +77,10 @@ case "$choice" in
7677
print_text_in_color "$ICyan" "Downloading the Daily Backup Wizard script..."
7778
run_script NOT_SUPPORTED_FOLDER daily-backup-wizard
7879
;;&
80+
*"Restic Cloud Backup Wizard"*)
81+
print_text_in_color "$ICyan" "Downloading the Cloud Backup Wizard script..."
82+
run_script NOT_SUPPORTED_FOLDER restic-cloud-backup-wizard
83+
;;&
7984
*"Firewall"*)
8085
print_text_in_color "$ICyan" "Downloading the Firewall script..."
8186
run_script NOT_SUPPORTED_FOLDER firewall

0 commit comments

Comments
 (0)