Comment out Red backup by default
This commit is contained in:
parent
b1bf0b8a7e
commit
0d948986f1
|
@ -4264,19 +4264,19 @@ chmod 600 /var/backups/friendica_daily.sql
|
||||||
# Backup the database
|
# Backup the database
|
||||||
#mysqldump --password=$MYSQL_PASSWORD redmatrix > $TEMPFILE
|
#mysqldump --password=$MYSQL_PASSWORD redmatrix > $TEMPFILE
|
||||||
|
|
||||||
FILESIZE=$(stat -c%s $TEMPFILE)
|
#FILESIZE=$(stat -c%s $TEMPFILE)
|
||||||
if [ "$FILESIZE" -eq "0" ]; then
|
#if [ "$FILESIZE" -eq "0" ]; then
|
||||||
# restart the web server
|
# # restart the web server
|
||||||
service apache2 start
|
# service apache2 start
|
||||||
|
|
||||||
# Send a warning email
|
# # Send a warning email
|
||||||
echo "Unable to create a backup of the Red Matrix database" | mail -s "Red Matrix backup" $EMAIL
|
# echo "Unable to create a backup of the Red Matrix database" | mail -s "Red Matrix backup" $EMAIL
|
||||||
|
|
||||||
exit 2
|
# exit 2
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
chmod 600 $TEMPFILE
|
#chmod 600 $TEMPFILE
|
||||||
mv $TEMPFILE /var/backups/redmatrix_daily.sql
|
#mv $TEMPFILE /var/backups/redmatrix_daily.sql
|
||||||
|
|
||||||
# Make the backup readable only by root
|
# Make the backup readable only by root
|
||||||
#chmod 600 /var/backups/redmatrix_daily.sql
|
#chmod 600 /var/backups/redmatrix_daily.sql
|
||||||
|
|
Loading…
Reference in New Issue