diff --git a/beaglebone.txt b/beaglebone.txt index 8273a3ce..17e28321 100644 --- a/beaglebone.txt +++ b/beaglebone.txt @@ -4264,19 +4264,19 @@ chmod 600 /var/backups/friendica_daily.sql # Backup the database #mysqldump --password=$MYSQL_PASSWORD redmatrix > $TEMPFILE -FILESIZE=$(stat -c%s $TEMPFILE) -if [ "$FILESIZE" -eq "0" ]; then - # restart the web server - service apache2 start +#FILESIZE=$(stat -c%s $TEMPFILE) +#if [ "$FILESIZE" -eq "0" ]; then +# # restart the web server +# service apache2 start - # Send a warning email - echo "Unable to create a backup of the Red Matrix database" | mail -s "Red Matrix backup" $EMAIL +# # Send a warning email +# echo "Unable to create a backup of the Red Matrix database" | mail -s "Red Matrix backup" $EMAIL - exit 2 -fi +# exit 2 +#fi -chmod 600 $TEMPFILE -mv $TEMPFILE /var/backups/redmatrix_daily.sql +#chmod 600 $TEMPFILE +#mv $TEMPFILE /var/backups/redmatrix_daily.sql # Make the backup readable only by root #chmod 600 /var/backups/redmatrix_daily.sql