Sfoglia il codice sorgente

Comment out Red backup by default

Bob Mottram 11 anni fa
parent
commit
0d948986f1
1 ha cambiato i file con 10 aggiunte e 10 eliminazioni
  1. 10
    10
      beaglebone.txt

+ 10
- 10
beaglebone.txt Vedi File

@@ -4264,19 +4264,19 @@ chmod 600 /var/backups/friendica_daily.sql
4264 4264
 # Backup the database
4265 4265
 #mysqldump --password=$MYSQL_PASSWORD redmatrix > $TEMPFILE
4266 4266
 
4267
-FILESIZE=$(stat -c%s $TEMPFILE)
4268
-if [ "$FILESIZE" -eq "0" ]; then
4269
-    # restart the web server
4270
-    service apache2 start
4267
+#FILESIZE=$(stat -c%s $TEMPFILE)
4268
+#if [ "$FILESIZE" -eq "0" ]; then
4269
+#    # restart the web server
4270
+#    service apache2 start
4271 4271
 
4272
-	# Send a warning email
4273
-	echo "Unable to create a backup of the Red Matrix database" | mail -s "Red Matrix backup" $EMAIL
4272
+#	# Send a warning email
4273
+#	echo "Unable to create a backup of the Red Matrix database" | mail -s "Red Matrix backup" $EMAIL
4274 4274
 
4275
-    exit 2
4276
-fi
4275
+#    exit 2
4276
+#fi
4277 4277
 
4278
-chmod 600 $TEMPFILE
4279
-mv $TEMPFILE /var/backups/redmatrix_daily.sql
4278
+#chmod 600 $TEMPFILE
4279
+#mv $TEMPFILE /var/backups/redmatrix_daily.sql
4280 4280
 
4281 4281
 # Make the backup readable only by root
4282 4282
 #chmod 600 /var/backups/redmatrix_daily.sql