updated to remove stopping services..

This commit is contained in:
Karl 2016-12-02 20:02:24 +00:00
parent 51781cf7f2
commit 42657e70ab

View File

@ -40,10 +40,10 @@ OFILEFINAL=$OFILE.img
sync; sync sync; sync
# Shut down some services before starting backup process # Shut down some services before starting backup process
echo "Stopping some services before backup." #echo "Stopping some services before backup."
service apache2 stop #service apache2 stop
service mysql stop #service mysql stop
service cron stop #service cron stop
# Begin the backup process, should take about 1 hour from 8Gb SD card to HDD # Begin the backup process, should take about 1 hour from 8Gb SD card to HDD
echo "Backing up SD card to USB HDD." echo "Backing up SD card to USB HDD."
@ -55,10 +55,10 @@ pv -tpreb /dev/mmcblk0 -s $SDSIZE | dd of=$OFILE bs=1M conv=sync,noerror iflag=f
RESULT=$? RESULT=$?
# Start services again that where shutdown before backup process # Start services again that where shutdown before backup process
echo "Start the stopped services again." #echo "Start the stopped services again."
service apache2 start #service apache2 start
service mysql start #service mysql start
service cron start #service cron start
# If command has completed successfully, delete previous backups and exit # If command has completed successfully, delete previous backups and exit
if [ $RESULT = 0 ]; if [ $RESULT = 0 ];