From 6beae8d5f34c547e4a049a2f3246cf536300a5c4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 7 Jul 2016 10:05:27 +0100 Subject: [PATCH] Local backup function for dlna --- src/freedombone-app-dlna | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-dlna b/src/freedombone-app-dlna index 8fc05eeb..f68f4b35 100755 --- a/src/freedombone-app-dlna +++ b/src/freedombone-app-dlna @@ -31,7 +31,7 @@ VARIANTS='full media' function upgrade_dlna { - echo '' + echo '' } function configure_firewall_for_dlna { @@ -53,7 +53,16 @@ function configure_firewall_for_dlna { } function backup_local_dlna { - echo '' + source_directory=/var/cache/minidlna + if [ -d $source_directory ]; then + dest_directory=dlna + echo $"Backing up $source_directory to $dest_directory" + + function_check backup_directory_to_usb + backup_directory_to_usb $source_directory $dest_directory + + echo $"Backup to $dest_directory complete" + fi } function backup_remote_dlna {