Skip to content

Commit

Permalink
Nextcloud add new backup options (#2709)
Browse files Browse the repository at this point in the history
* 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
celeroncool authored Dec 6, 2024
1 parent 2aeaa93 commit 2f4432f
Show file tree
Hide file tree
Showing 2 changed files with 515 additions and 0 deletions.
5 changes: 5 additions & 0 deletions not-supported/not-supported_menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ $CHECKLIST_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
"NTFS Mount" "(Mount NTFS drives)" OFF \
"NTFS Veracrypt" "(Format, encrypt and mount Veracrypt NTFS drives)" OFF \
"Backup Viewer" "(View your Backups)" OFF \
"Restic Cloud Backup" "(Backup your server using Restic to multiple clouds)" OFF \
"Daily Backup Wizard" "(Create a Daily Backup script)" OFF \
"Firewall" "(Setting up a firewall)" OFF \
"Monitor Link Shares" "(Monitors the creation of link shares)" OFF \
Expand Down Expand Up @@ -76,6 +77,10 @@ case "$choice" in
print_text_in_color "$ICyan" "Downloading the Daily Backup Wizard script..."
run_script NOT_SUPPORTED_FOLDER daily-backup-wizard
;;&
*"Restic Cloud Backup Wizard"*)
print_text_in_color "$ICyan" "Downloading the Cloud Backup Wizard script..."
run_script NOT_SUPPORTED_FOLDER restic-cloud-backup-wizard
;;&
*"Firewall"*)
print_text_in_color "$ICyan" "Downloading the Firewall script..."
run_script NOT_SUPPORTED_FOLDER firewall
Expand Down
Loading

0 comments on commit 2f4432f

Please sign in to comment.