Local backup of rss
This commit is contained in:
parent
efcdf72bf6
commit
5d0241b18c
|
@ -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" || \
|
||||
|
|
Loading…
Reference in New Issue