Selectively restore local files

This commit is contained in:
Bob Mottram 2016-03-07 17:37:47 +00:00
parent 7aa3930afc
commit dddb128e0a
1 changed files with 36 additions and 34 deletions

View File

@ -954,23 +954,24 @@ function restore_from_usb {
11 $"IPFS" off \ 11 $"IPFS" off \
12 $"SSH keys" off \ 12 $"SSH keys" off \
13 $"User configuration files" off \ 13 $"User configuration files" off \
14 $"User fin files" off \ 14 $"User local files" off \
15 $"SSL/TLS certificates" off \ 15 $"User fin files" off \
16 $"Personal settings" off \ 16 $"SSL/TLS certificates" off \
17 $"Mailing List" off \ 17 $"Personal settings" off \
18 $"XMPP chat" off \ 18 $"Mailing List" off \
19 $"GNU Social" off \ 19 $"XMPP chat" off \
20 $"Hubzilla" off \ 20 $"GNU Social" off \
21 $"Owncloud" off \ 21 $"Hubzilla" off \
22 $"Gogs" off \ 22 $"Owncloud" off \
23 $"Wiki" off \ 23 $"Gogs" off \
24 $"Blog" off \ 24 $"Wiki" off \
25 $"CJDNS" off \ 25 $"Blog" off \
26 $"Email" off \ 26 $"CJDNS" off \
27 $"DLNA" off \ 27 $"Email" off \
28 $"VoIP" off \ 28 $"DLNA" off \
29 $"RSS reader" off \ 29 $"VoIP" off \
30 $"Tox" off 2> $data 30 $"RSS reader" off \
31 $"Tox" off 2> $data
sel=$? sel=$?
case $sel in case $sel in
1) break;; 1) break;;
@ -990,23 +991,24 @@ function restore_from_usb {
11) ${PROJECT_NAME}-restore-local $USB_DRIVE ipfs;; 11) ${PROJECT_NAME}-restore-local $USB_DRIVE ipfs;;
12) ${PROJECT_NAME}-restore-local $USB_DRIVE ssh;; 12) ${PROJECT_NAME}-restore-local $USB_DRIVE ssh;;
13) ${PROJECT_NAME}-restore-local $USB_DRIVE userconfig;; 13) ${PROJECT_NAME}-restore-local $USB_DRIVE userconfig;;
14) ${PROJECT_NAME}-restore-local $USB_DRIVE userfin;; 14) ${PROJECT_NAME}-restore-local $USB_DRIVE userlocal;;
15) ${PROJECT_NAME}-restore-local $USB_DRIVE certs;; 15) ${PROJECT_NAME}-restore-local $USB_DRIVE userfin;;
16) ${PROJECT_NAME}-restore-local $USB_DRIVE personal;; 16) ${PROJECT_NAME}-restore-local $USB_DRIVE certs;;
17) ${PROJECT_NAME}-restore-local $USB_DRIVE mailinglist;; 17) ${PROJECT_NAME}-restore-local $USB_DRIVE personal;;
18) ${PROJECT_NAME}-restore-local $USB_DRIVE xmpp;; 18) ${PROJECT_NAME}-restore-local $USB_DRIVE mailinglist;;
19) ${PROJECT_NAME}-restore-local $USB_DRIVE gnusocial;; 19) ${PROJECT_NAME}-restore-local $USB_DRIVE xmpp;;
20) ${PROJECT_NAME}-restore-local $USB_DRIVE hubzilla;; 20) ${PROJECT_NAME}-restore-local $USB_DRIVE gnusocial;;
21) ${PROJECT_NAME}-restore-local $USB_DRIVE owncloud;; 21) ${PROJECT_NAME}-restore-local $USB_DRIVE hubzilla;;
22) ${PROJECT_NAME}-restore-local $USB_DRIVE gogs;; 22) ${PROJECT_NAME}-restore-local $USB_DRIVE owncloud;;
23) ${PROJECT_NAME}-restore-local $USB_DRIVE wiki;; 23) ${PROJECT_NAME}-restore-local $USB_DRIVE gogs;;
24) ${PROJECT_NAME}-restore-local $USB_DRIVE blog;; 24) ${PROJECT_NAME}-restore-local $USB_DRIVE wiki;;
25) ${PROJECT_NAME}-restore-local $USB_DRIVE cjdns;; 25) ${PROJECT_NAME}-restore-local $USB_DRIVE blog;;
26) ${PROJECT_NAME}-restore-local $USB_DRIVE email;; 26) ${PROJECT_NAME}-restore-local $USB_DRIVE cjdns;;
27) ${PROJECT_NAME}-restore-local $USB_DRIVE dlna;; 27) ${PROJECT_NAME}-restore-local $USB_DRIVE email;;
28) ${PROJECT_NAME}-restore-local $USB_DRIVE voip;; 28) ${PROJECT_NAME}-restore-local $USB_DRIVE dlna;;
29) ${PROJECT_NAME}-restore-local $USB_DRIVE ttrss;; 29) ${PROJECT_NAME}-restore-local $USB_DRIVE voip;;
30) ${PROJECT_NAME}-restore-local $USB_DRIVE tox;; 20) ${PROJECT_NAME}-restore-local $USB_DRIVE ttrss;;
31) ${PROJECT_NAME}-restore-local $USB_DRIVE tox;;
esac esac
done done
any_key any_key