소스 검색

Make calling database backup to usb simpler

Bob Mottram 8 년 전
부모
커밋
0b54cf5641
No account linked to committer's email

+ 617
- 618
src/freedombone-app-gnusocial
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 2
- 3
src/freedombone-app-gogs 파일 보기

56
 
56
 
57
 			echo $"Backing up gogs"
57
 			echo $"Backing up gogs"
58
 
58
 
59
-			function_check backup_database_local
60
-			backup_database_local gogs
59
+			function_check backup_database_to_usb
60
+			backup_database_to_usb gogs
61
 
61
 
62
 			function_check backup_directory_to_usb
62
 			function_check backup_directory_to_usb
63
-			backup_directory_to_usb /root/tempgogsdata gogsdata
64
 			backup_directory_to_usb $GOPATH/src/github.com/gogits/gogs/custom gogs
63
 			backup_directory_to_usb $GOPATH/src/github.com/gogits/gogs/custom gogs
65
 			backup_directory_to_usb /home/git/gogs-repositories gogsrepos
64
 			backup_directory_to_usb /home/git/gogs-repositories gogsrepos
66
 			backup_directory_to_usb /home/git/.ssh gogsssh
65
 			backup_directory_to_usb /home/git/.ssh gogsssh

+ 2
- 4
src/freedombone-app-hubzilla 파일 보기

66
 			HUBZILLA_DOMAIN_NAME='hubzilla'
66
 			HUBZILLA_DOMAIN_NAME='hubzilla'
67
 			HUBZILLA_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Hubzilla domain" | awk -F ':' '{print $2}')
67
 			HUBZILLA_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Hubzilla domain" | awk -F ':' '{print $2}')
68
 
68
 
69
-			function_check backup_database_local
70
-			backup_database_local hubzilla
69
+			function_check backup_database_to_usb
70
+			backup_database_to_usb hubzilla
71
 
71
 
72
-			function_check backup_directory_to_usb
73
-			backup_directory_to_usb /root/temphubzilladata hubzilladata
74
 			backup_directory_to_usb /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs hubzilla
72
 			backup_directory_to_usb /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs hubzilla
75
 
73
 
76
 			echo $"Hubzilla backup complete"
74
 			echo $"Hubzilla backup complete"

+ 2
- 4
src/freedombone-app-rss 파일 보기

87
 
87
 
88
 			echo $"Backing up ttrss"
88
 			echo $"Backing up ttrss"
89
 
89
 
90
-			function_check backup_database_local
91
-			backup_database_local ttrss
90
+			function_check backup_database_to_usb
91
+			backup_database_to_usb ttrss
92
 
92
 
93
-			function_check backup_directory_to_usb
94
-			backup_directory_to_usb /root/tempttrssdata ttrssdata
95
 			backup_directory_to_usb /etc/share/tt-rss ttrss
93
 			backup_directory_to_usb /etc/share/tt-rss ttrss
96
 
94
 
97
 			echo $"ttrss backup complete"
95
 			echo $"ttrss backup complete"

+ 2
- 2
src/freedombone-app-searx 파일 보기

64
 }
64
 }
65
 
65
 
66
 function backup_local_searx {
66
 function backup_local_searx {
67
-	echo ''
67
+	echo -n ''
68
 }
68
 }
69
 
69
 
70
 function backup_remote_searx {
70
 function backup_remote_searx {
71
-	echo ''
71
+	echo -n ''
72
 }
72
 }
73
 
73
 
74
 function remove_searx {
74
 function remove_searx {

+ 3
- 3
src/freedombone-app-sip 파일 보기

38
 VOIP_TURN_NONCE=
38
 VOIP_TURN_NONCE=
39
 
39
 
40
 function upgrade_sip {
40
 function upgrade_sip {
41
-    echo ''
41
+    echo -n ''
42
 }
42
 }
43
 
43
 
44
 function backup_local_sip {
44
 function backup_local_sip {
45
-	echo ''
45
+	echo -n ''
46
 }
46
 }
47
 
47
 
48
 function backup_remote_sip {
48
 function backup_remote_sip {
49
-	echo ''
49
+	echo -n ''
50
 }
50
 }
51
 
51
 
52
 function remove_sip {
52
 function remove_sip {

+ 3
- 3
src/freedombone-app-syncthing 파일 보기

40
 SYNCTHING_USER_IDS_FILE='.syncthingids'
40
 SYNCTHING_USER_IDS_FILE='.syncthingids'
41
 
41
 
42
 function upgrade_syncthing {
42
 function upgrade_syncthing {
43
-    echo ''
43
+    echo -n ''
44
 }
44
 }
45
 
45
 
46
 function backup_local_syncthing {
46
 function backup_local_syncthing {
47
-    echo ''
47
+    echo -n ''
48
 }
48
 }
49
 
49
 
50
 function backup_remote_syncthing {
50
 function backup_remote_syncthing {
51
-    echo ''
51
+    echo -n ''
52
 }
52
 }
53
 
53
 
54
 function remove_syncthing {
54
 function remove_syncthing {

+ 6
- 0
src/freedombone-utils-backup 파일 보기

261
 	fi
261
 	fi
262
 }
262
 }
263
 
263
 
264
+function backup_database_to_usb {
265
+	database_name=$1
266
+	backup_database_local $database_name
267
+	backup_directory_to_usb /root/temp${database_name}data ${database_name}data
268
+}
269
+
264
 # NOTE: deliberately no exit 0
270
 # NOTE: deliberately no exit 0