Remote backup of rss

This commit is contained in:
Bob Mottram 2016-02-07 19:30:02 +00:00
parent 5d0241b18c
commit 23df08d0df
1 changed files with 17 additions and 0 deletions

View File

@ -261,6 +261,22 @@ function backup_tor {
fi
}
function backup_rss_reader {
if grep -q "RSS reader domain" $COMPLETION_FILE; then
RSS_READER_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "RSS reader domain" | awk -F ':' '{print $2}')
if [ -d /etc/share/ttrss ]; then
suspend_site ${RSS_READER_DOMAIN_NAME}
backup_database_to_friend ttrss
backup_directory_to_friend /root/tempttrssdata ttrssdata
echo $"Backing up RSS reader installation"
backup_directory_to_friend /etc/share/ttrss ttrss
restart_site
else
echo $"RSS reader domain specified but not found in /etc/share/ttrss}"
fi
fi
}
function backup_gnusocial {
if grep -q "GNU Social domain" $COMPLETION_FILE; then
MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | awk -F ':' '{print $2}')
@ -566,6 +582,7 @@ if [[ $TEST_MODE == "no" ]]; then
backup_letsencrypt
backup_tor
backup_gnusocial
backup_rss_reader
backup_hubzilla
backup_owncloud
backup_gogs