From 9af646c717410117c9cc39f609e3fb7f274ee212 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 29 Sep 2014 10:03:20 +0100 Subject: [PATCH] Backup SSL certificates --- install-freedombone.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install-freedombone.sh b/install-freedombone.sh index 9db7f876..a3c2d463 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -3114,6 +3114,11 @@ function create_backup_script { echo ' fi' >> /usr/bin/$BACKUP_SCRIPT_NAME echo " obnam -r $USB_MOUNT/backup/personal /home/$MY_USERNAME/personal" >> /usr/bin/$BACKUP_SCRIPT_NAME echo ' fi' >> /usr/bin/$BACKUP_SCRIPT_NAME + # SSL certificates + echo " if [ ! -d $USB_MOUNT/backup/ssl ]; then" >> /usr/bin/$BACKUP_SCRIPT_NAME + echo " mkdir $USB_MOUNT/backup/ssl" >> /usr/bin/$BACKUP_SCRIPT_NAME + echo ' fi' >> /usr/bin/$BACKUP_SCRIPT_NAME + echo " obnam -r $USB_MOUNT/backup/ssl /etc/ssl" >> /usr/bin/$BACKUP_SCRIPT_NAME # dynamic dns echo " if [ -f /usr/bin/dynamicdns ]; then" >> /usr/bin/$BACKUP_SCRIPT_NAME echo " cp -f /usr/bin/dynamicdns $USB_MOUNT/backup/dynamicdns" >> /usr/bin/$BACKUP_SCRIPT_NAME @@ -3225,6 +3230,10 @@ function create_restore_script { echo " if [ -d $USB_MOUNT/backup/personal ]; then" >> /usr/bin/$RESTORE_SCRIPT_NAME echo " obnam restore --to /home/$MY_USERNAME/personal $USB_MOUNT/backup/personal" >> /usr/bin/$RESTORE_SCRIPT_NAME echo ' fi' >> /usr/bin/$BACKUP_SCRIPT_NAME + # SSL certificates + echo " if [ -d $USB_MOUNT/backup/ssl ]; then" >> /usr/bin/$RESTORE_SCRIPT_NAME + echo " obnam restore --to /etc/ssl $USB_MOUNT/backup/ssl" >> /usr/bin/$RESTORE_SCRIPT_NAME + echo ' fi' >> /usr/bin/$BACKUP_SCRIPT_NAME # dynamic dns echo " if [ -f $USB_MOUNT/backup/dynamicdns ]; then" >> /usr/bin/$RESTORE_SCRIPT_NAME echo " cp -f $USB_MOUNT/backup/dynamicdns /usr/bin/dynamicdns" >> /usr/bin/$RESTORE_SCRIPT_NAME