We’ve recently switched to SSL, and had some problems with the redirection from http to https. Used a plugin, that messed up a lot of stuff, and we had to restore a backup, but didn’t had a very recent one. That’s when Andrew made this script to update our websites files daily.
What does it do ?
If you follow the exact steps from the video, using our python script (download at bottom) and with the help of cron, you’ll set up your system to create a backup every day at 00:00 for the last 3 days. So, if something breaks on your server, you’ll have a backup for each of the last three days, and you can restore it pretty quick.
What do you need ?
- a server (VPS);
- ssh access to it;
- centOS operation system;
This works on other OS distros as well, but the video demostration from the video above is made for centOS. On ubuntu, archlinux, etc, some commands showed in the video might not work, you should check the distros documentation to find out more.
- Download the script and change the settings according to your system;
- Move it to your server through ssh, ftp or using a cpanel;
- Edit your cronfile to start the script every day at 00:00