Local backup of ttrss
This commit is contained in:
parent
278440a39c
commit
f0925ebb97
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue