I'm going to take a quick backup...

Yeah, I wrote the script in Word and the carriage returns somehow get copied and pasted when I created the file up on the server... So I had to run a quick script that removed all the windows commands from the end of the lines and left them blank...

then it ran.
 
And because I am using mysqldump it takes a snapshot of the database then gzips it... so it locks up for like a minute instead of like 20 minutes while it downloads...

Way better than the past.
 
So, it will likely be down for a few minutes while a backup runs.
giphy.gif
 
Holy moly... The frickin script saved it someplace strange because I was using a relative path and it was running at a higher level than I expected... It took me some panic time and thinking the stuff wasn't working until I just used a grep to find the file it created and moved it to the right place and fixed the directory path...

And...

there are probably like 2 people here that have any idea what I am saying. Sorry. I am just thrilled that I finally got it working after modernizing the script... I learned a crapton... and I have made it so backups run early AM but do not lock down the site while they run.
 
Back
Top