Local backup of rss

This commit is contained in:
Bob Mottram 2016-02-07 19:26:13 +00:00
parent efcdf72bf6
commit 5d0241b18c
1 changed files with 9 additions and 0 deletions

View File

@ -80,6 +80,10 @@ function restart_site {
} }
function update_domains { 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' GIT_DOMAIN_NAME='gogs'
if grep -q "Gogs domain" $COMPLETION_FILE; then if grep -q "Gogs domain" $COMPLETION_FILE; then
GIT_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Gogs domain" | awk -F ':' '{print $2}') 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, /var/lib/dokuwiki, wiki"
"none, none, /etc/dokuwiki, wiki2" "none, none, /etc/dokuwiki, wiki2"
"none, none, /etc/ssl, ssl" "none, none, /etc/ssl, ssl"
"/etc/share/ttrss, ttrss, /root/tempttrssdata, ttrss"
"none, none, /var/spool/mlmmj, mailinglist" "none, none, /var/spool/mlmmj, mailinglist"
"none, none, /var/lib/prosody, xmpp" "none, none, /var/lib/prosody, xmpp"
"none, none, /etc/nginx/sites-available, web" "none, none, /etc/nginx/sites-available, web"
@ -380,6 +385,9 @@ function backup_directories {
if [[ "$database_name" == *"gogs"* ]]; then if [[ "$database_name" == *"gogs"* ]]; then
suspend_site ${GIT_DOMAIN_NAME} suspend_site ${GIT_DOMAIN_NAME}
fi fi
if [[ "$database_name" == *"ttrss"* ]]; then
suspend_site ${RSS_READER_DOMAIN_NAME}
fi
if [[ $required_directory != "none" ]]; then if [[ $required_directory != "none" ]]; then
if [ -d $required_directory ]; then if [ -d $required_directory ]; then
@ -504,6 +512,7 @@ function valid_backup_destination {
"$destination_dir" == "dlna" || \ "$destination_dir" == "dlna" || \
"$destination_dir" == "tox" || \ "$destination_dir" == "tox" || \
"$destination_dir" == "ssl" || \ "$destination_dir" == "ssl" || \
"$destination_dir" == "ttrss" || \
"$destination_dir" == "blog" || \ "$destination_dir" == "blog" || \
"$destination_dir" == "owncloud" || \ "$destination_dir" == "owncloud" || \
"$destination_dir" == "owncloud2" || \ "$destination_dir" == "owncloud2" || \