Browse Source

Local backup of rss

Bob Mottram 9 years ago
parent
commit
5d0241b18c
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      src/freedombone-backup-local

+ 9
- 0
src/freedombone-backup-local View File

80
 }
80
 }
81
 
81
 
82
 function update_domains {
82
 function update_domains {
83
+    RSS_READER_DOMAIN_NAME='ttrss'
84
+    if grep -q "RSS reader domain" $COMPLETION_FILE; then
85
+        RSS_READER_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Gogs domain" | awk -F ':' '{print $2}')
86
+    fi
83
     GIT_DOMAIN_NAME='gogs'
87
     GIT_DOMAIN_NAME='gogs'
84
     if grep -q "Gogs domain" $COMPLETION_FILE; then
88
     if grep -q "Gogs domain" $COMPLETION_FILE; then
85
         GIT_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Gogs domain" | awk -F ':' '{print $2}')
89
         GIT_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Gogs domain" | awk -F ':' '{print $2}')
341
         "none,                               none,       /var/lib/dokuwiki,                               wiki"
345
         "none,                               none,       /var/lib/dokuwiki,                               wiki"
342
         "none,                               none,       /etc/dokuwiki,                                   wiki2"
346
         "none,                               none,       /etc/dokuwiki,                                   wiki2"
343
         "none,                               none,       /etc/ssl,                                        ssl"
347
         "none,                               none,       /etc/ssl,                                        ssl"
348
+        "/etc/share/ttrss,                   ttrss,      /root/tempttrssdata,                             ttrss"
344
         "none,                               none,       /var/spool/mlmmj,                                mailinglist"
349
         "none,                               none,       /var/spool/mlmmj,                                mailinglist"
345
         "none,                               none,       /var/lib/prosody,                                xmpp"
350
         "none,                               none,       /var/lib/prosody,                                xmpp"
346
         "none,                               none,       /etc/nginx/sites-available,                      web"
351
         "none,                               none,       /etc/nginx/sites-available,                      web"
380
         if [[ "$database_name" == *"gogs"* ]]; then
385
         if [[ "$database_name" == *"gogs"* ]]; then
381
             suspend_site ${GIT_DOMAIN_NAME}
386
             suspend_site ${GIT_DOMAIN_NAME}
382
         fi
387
         fi
388
+        if [[ "$database_name" == *"ttrss"* ]]; then
389
+            suspend_site ${RSS_READER_DOMAIN_NAME}
390
+        fi
383
 
391
 
384
         if [[ $required_directory != "none" ]]; then
392
         if [[ $required_directory != "none" ]]; then
385
             if [ -d $required_directory ]; then
393
             if [ -d $required_directory ]; then
504
           "$destination_dir" == "dlna" || \
512
           "$destination_dir" == "dlna" || \
505
           "$destination_dir" == "tox" || \
513
           "$destination_dir" == "tox" || \
506
           "$destination_dir" == "ssl" || \
514
           "$destination_dir" == "ssl" || \
515
+          "$destination_dir" == "ttrss" || \
507
           "$destination_dir" == "blog" || \
516
           "$destination_dir" == "blog" || \
508
           "$destination_dir" == "owncloud" || \
517
           "$destination_dir" == "owncloud" || \
509
           "$destination_dir" == "owncloud2" || \
518
           "$destination_dir" == "owncloud2" || \