Add hubzilla restore to the backup menu

This commit is contained in:
Bob Mottram 2015-11-15 17:15:23 +00:00
parent 3d6fcec14c
commit b4358f195c
1 changed files with 15 additions and 13 deletions

View File

@ -619,16 +619,17 @@ function menu_backup_restore {
trap "rm -f $data" 0 1 2 5 15 trap "rm -f $data" 0 1 2 5 15
dialog --backtitle "Freedombone Control Panel" \ dialog --backtitle "Freedombone Control Panel" \
--title "Backup and Restore" \ --title "Backup and Restore" \
--radiolist "Choose an operation:" 16 70 9 \ --radiolist "Choose an operation:" 17 70 10 \
1 "Backup data to USB drive" off \ 1 "Backup data to USB drive" off \
2 "Restore GPG key from USB keydrive" off \ 2 "Restore GPG key from USB keydrive" off \
3 "Restore data from USB drive" off \ 3 "Restore data from USB drive" off \
4 "Configure remote backups" off \ 4 "Restore Hubzilla data from USB drive" off \
5 "Restore from remote backup" off \ 5 "Configure remote backups" off \
6 "Backup GPG key to USB (master keydrive)" off \ 6 "Restore from remote backup" off \
7 "Backup GPG key to USB (fragment keydrive)" off \ 7 "Backup GPG key to USB (master keydrive)" off \
8 "Format a USB drive (LUKS encrypted)" off \ 8 "Backup GPG key to USB (fragment keydrive)" off \
9 "Back to main menu" on 2> $data 9 "Format a USB drive (LUKS encrypted)" off \
10 "Back to main menu" on 2> $data
sel=$? sel=$?
case $sel in case $sel in
1) break;; 1) break;;
@ -638,12 +639,13 @@ function menu_backup_restore {
1) backup_data;; 1) backup_data;;
2) restore_gpg_key;; 2) restore_gpg_key;;
3) restore_data;; 3) restore_data;;
4) configure_remote_backups;; 4) hubzilla_restore;;
5) restore_data_remote;; 5) configure_remote_backups;;
6) create_keydrive_master;; 6) restore_data_remote;;
7) create_keydrive_fragment;; 7) create_keydrive_master;;
8) format_drive;; 8) create_keydrive_fragment;;
9) break;; 9) format_drive;;
10) break;;
esac esac
done done
} }