From 5d0241b18cfcf4fe5281c9b5cc00fa11c2d5c9dd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 7 Feb 2016 19:26:13 +0000 Subject: [PATCH] Local backup of rss --- src/freedombone-backup-local | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/freedombone-backup-local b/src/freedombone-backup-local index 53bb1e0a..4d0974da 100755 --- a/src/freedombone-backup-local +++ b/src/freedombone-backup-local @@ -80,6 +80,10 @@ function restart_site { } function update_domains { + RSS_READER_DOMAIN_NAME='ttrss' + if grep -q "RSS reader domain" $COMPLETION_FILE; then + RSS_READER_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Gogs domain" | awk -F ':' '{print $2}') + fi GIT_DOMAIN_NAME='gogs' if grep -q "Gogs domain" $COMPLETION_FILE; then GIT_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Gogs domain" | awk -F ':' '{print $2}') @@ -341,6 +345,7 @@ function backup_directories { "none, none, /var/lib/dokuwiki, wiki" "none, none, /etc/dokuwiki, wiki2" "none, none, /etc/ssl, ssl" + "/etc/share/ttrss, ttrss, /root/tempttrssdata, ttrss" "none, none, /var/spool/mlmmj, mailinglist" "none, none, /var/lib/prosody, xmpp" "none, none, /etc/nginx/sites-available, web" @@ -380,6 +385,9 @@ function backup_directories { if [[ "$database_name" == *"gogs"* ]]; then suspend_site ${GIT_DOMAIN_NAME} fi + if [[ "$database_name" == *"ttrss"* ]]; then + suspend_site ${RSS_READER_DOMAIN_NAME} + fi if [[ $required_directory != "none" ]]; then if [ -d $required_directory ]; then @@ -504,6 +512,7 @@ function valid_backup_destination { "$destination_dir" == "dlna" || \ "$destination_dir" == "tox" || \ "$destination_dir" == "ssl" || \ + "$destination_dir" == "ttrss" || \ "$destination_dir" == "blog" || \ "$destination_dir" == "owncloud" || \ "$destination_dir" == "owncloud2" || \