Browse Source

backup www directory

Bob Mottram 8 years ago
parent
commit
b2d27a915e
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/freedombone-app-radicale

+ 4
- 4
src/freedombone-app-radicale View File

97
         function_check backup_directory_to_usb
97
         function_check backup_directory_to_usb
98
         backup_directory_to_usb $source_directory $dest_directory
98
         backup_directory_to_usb $source_directory $dest_directory
99
     fi
99
     fi
100
-    source_directory=/var/www/radicale/collections
100
+    source_directory=/var/www/radicale
101
     if [ -d $source_directory ]; then
101
     if [ -d $source_directory ]; then
102
         dest_directory=radicalecollections
102
         dest_directory=radicalecollections
103
         function_check backup_directory_to_usb
103
         function_check backup_directory_to_usb
120
 
120
 
121
         temp_restore_dir=/root/tempradicalecollections
121
         temp_restore_dir=/root/tempradicalecollections
122
         restore_directory_from_usb $temp_restore_dir radicalecollections
122
         restore_directory_from_usb $temp_restore_dir radicalecollections
123
-        cp -r $temp_restore_dir/var/www/radicale/collections/* /var/www/radicale/collections
123
+        cp -r $temp_restore_dir/var/www/radicale/* /var/www/radicale
124
         if [ ! "$?" = "0" ]; then
124
         if [ ! "$?" = "0" ]; then
125
             function_check backup_unmount_drive
125
             function_check backup_unmount_drive
126
             backup_unmount_drive
126
             backup_unmount_drive
137
     if [ -d ${RADICALE_DIRECTORY} ]; then
137
     if [ -d ${RADICALE_DIRECTORY} ]; then
138
         echo $"Backing up the radicale settings"
138
         echo $"Backing up the radicale settings"
139
         backup_directory_to_friend ${RADICALE_DIRECTORY} radicale
139
         backup_directory_to_friend ${RADICALE_DIRECTORY} radicale
140
-        backup_directory_to_friend /var/www/radicale/collections radicalecollections
140
+        backup_directory_to_friend /var/www/radicale radicalecollections
141
         echo $"Backup of radicale settings complete"
141
         echo $"Backup of radicale settings complete"
142
     fi
142
     fi
143
 }
143
 }
155
 
155
 
156
         temp_restore_dir=/root/tempradicalecollections
156
         temp_restore_dir=/root/tempradicalecollections
157
         restore_directory_from_friend $temp_restore_dir radicalecollections
157
         restore_directory_from_friend $temp_restore_dir radicalecollections
158
-        cp -r $temp_restore_dir/var/www/radicale/collections/* /var/www/radicale/collections
158
+        cp -r $temp_restore_dir/var/www/radicale/* /var/www/radicale
159
         if [ ! "$?" = "0" ]; then
159
         if [ ! "$?" = "0" ]; then
160
             exit 3674284
160
             exit 3674284
161
         fi
161
         fi