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
|
||||
#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
|
||||
|
|
Loading…
Reference in New Issue