Browse Source

Local backup function for dlna

Bob Mottram 8 years ago
parent
commit
6beae8d5f3
No account linked to committer's email
1 changed files with 11 additions and 2 deletions
  1. 11
    2
      src/freedombone-app-dlna

+ 11
- 2
src/freedombone-app-dlna View File

@@ -31,7 +31,7 @@
31 31
 VARIANTS='full media'
32 32
 
33 33
 function upgrade_dlna {
34
-    echo ''
34
+	echo ''
35 35
 }
36 36
 
37 37
 function configure_firewall_for_dlna {
@@ -53,7 +53,16 @@ function configure_firewall_for_dlna {
53 53
 }
54 54
 
55 55
 function backup_local_dlna {
56
-	echo ''
56
+	source_directory=/var/cache/minidlna
57
+	if [ -d $source_directory ]; then
58
+		dest_directory=dlna
59
+		echo $"Backing up $source_directory to $dest_directory"
60
+
61
+		function_check backup_directory_to_usb
62
+		backup_directory_to_usb $source_directory $dest_directory
63
+
64
+		echo $"Backup to $dest_directory complete"
65
+	fi
57 66
 }
58 67
 
59 68
 function backup_remote_dlna {