Magento Local and S3 File Backup Script

System administrators understand the code: Backup! Backup!! Backup!! You can never be bigger than a backup process. Today, I want to share a backup script which is use for backing up our Magento root directory at Furnish.NG. You can find the script on Github: https://github.com/FurnishNG/Magento-File-Backup-Script.

It’s been tested Ubuntu 14.04. Hope it will be useful to you as it’s been to us. Let me know your thoughts on this. Feedback on how to improve the script is welcomed. Thank you.

2 Likes

I like this script…

Thank you boss! @Possicon

Ermm, Am I the only one thinking a union of furniture sellers is brewing… :yum:

1 Like

Yeah something like cabinet cabal! Then @Possicon can be president with @Ndianabasi as vice…new joiners will pay filing fees :grinning:

1 Like

Lol…we may need to form a sudo-cabal so that the real cabal will not know one is forming. a la Saraki :wink:

Nice one @Ndianabasi.
Nothing serious, but I noticed you didn’t need to first try to create the year directory first. ‘mkdir’ has a ‘-p’ switch to create directory recursively. That way, you can try to create the month directory straight.

Thank you for the observation @yomexzo. “mkdir -p” is used extensively throughout the script. I will create the BACKUP_DIR in one operation for the next commit.

LOL @gabe. Please do not let the “existing” cabal know about this just yet!

Oga @PapaOlabode, you are already seeing deep into the future. I will discuss this with my oga @Possicon soonest :stuck_out_tongue_winking_eye:

Forked. Thanks, I’ll have use for this. Perhaps you may be interested in a full volume backup as well https://github.com/CaseyLabs/aws-ec2-ebs-automatic-snapshot-bash

1 Like

Excellent reference @Ralph. I’ve been thinking about writing a script for this! Thank you so much.

@Ndianabasi @Possicon… Another One…

Y’all should just merge… One store to rule them all…