Local backup of ttrss

This commit is contained in:
Bob Mottram 2016-07-07 14:04:00 +01:00
parent 278440a39c
commit f0925ebb97
No known key found for this signature in database
GPG Key ID: BA68F26108DC9F87
1 changed files with 22 additions and 2 deletions

View File

@ -76,11 +76,31 @@ function upgrade_rss {
}
function backup_local_rss {
echo ''
RSS_READER_DOMAIN_NAME='ttrss'
if grep -q "RSS reader domain" $COMPLETION_FILE; then
RSS_READER_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "RSS reader domain" | awk -F ':' '{print $2}')
fi
if grep -q "RSS reader domain" $COMPLETION_FILE; then
if [ -d /etc/share/tt-rss ]; then
RSS_READER_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "RSS reader domain" | awk -F ':' '{print $2}')
echo $"Backing up ttrss"
function_check backup_database_local
backup_database_local ttrss
function_check backup_directory_to_usb
backup_directory_to_usb /root/tempttrssdata ttrssdata
backup_directory_to_usb /etc/share/tt-rss ttrss
echo $"ttrss backup complete"
fi
fi
}
function backup_remote_rss {
echo ''
echo -n ''
}
function remove_rss {