diff --git a/src/freedombone-backup-remote b/src/freedombone-backup-remote index 9c687bf0..e2c9a5b1 100755 --- a/src/freedombone-backup-remote +++ b/src/freedombone-backup-remote @@ -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