updated to remove stopping services..
This commit is contained in:
parent
51781cf7f2
commit
42657e70ab
@ -40,10 +40,10 @@ OFILEFINAL=$OFILE.img
|
||||
sync; sync
|
||||
|
||||
# Shut down some services before starting backup process
|
||||
echo "Stopping some services before backup."
|
||||
service apache2 stop
|
||||
service mysql stop
|
||||
service cron stop
|
||||
#echo "Stopping some services before backup."
|
||||
#service apache2 stop
|
||||
#service mysql stop
|
||||
#service cron stop
|
||||
|
||||
# Begin the backup process, should take about 1 hour from 8Gb SD card to 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=$?
|
||||
|
||||
# Start services again that where shutdown before backup process
|
||||
echo "Start the stopped services again."
|
||||
service apache2 start
|
||||
service mysql start
|
||||
service cron start
|
||||
#echo "Start the stopped services again."
|
||||
#service apache2 start
|
||||
#service mysql start
|
||||
#service cron start
|
||||
|
||||
# If command has completed successfully, delete previous backups and exit
|
||||
if [ $RESULT = 0 ];
|
||||
|
Loading…
x
Reference in New Issue
Block a user