Skip to content
Snippets Groups Projects
Commit 5d0241b1 authored by Bob Mottram's avatar Bob Mottram
Browse files

Local backup of rss

parent efcdf72b
No related branches found
No related tags found
No related merge requests found
......@@ -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" || \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment