Remote backup of rss
This commit is contained in:
parent
5d0241b18c
commit
23df08d0df
|
@ -261,6 +261,22 @@ function backup_tor {
|
||||||
fi
|
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 {
|
function backup_gnusocial {
|
||||||
if grep -q "GNU Social domain" $COMPLETION_FILE; then
|
if grep -q "GNU Social domain" $COMPLETION_FILE; then
|
||||||
MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | awk -F ':' '{print $2}')
|
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_letsencrypt
|
||||||
backup_tor
|
backup_tor
|
||||||
backup_gnusocial
|
backup_gnusocial
|
||||||
|
backup_rss_reader
|
||||||
backup_hubzilla
|
backup_hubzilla
|
||||||
backup_owncloud
|
backup_owncloud
|
||||||
backup_gogs
|
backup_gogs
|
||||||
|
|
Loading…
Reference in New Issue