Data is critical for any business, and when we talk about a website or software, it is their backbone. Database and codebase are essential to run any IT business and keeping multiple copies of readily available backup at various places is extremely important.
Every business must have a reliable data backup plan in place as you never know when and what can go wrong, and you require a copy of the backup to save you from a disaster.
Here is how you should plan your backups.
- Always keep the last seven backups of code and database.
- Keep copies of the backups minimum at two places. (Always keep a local copy of the backup, which is always handy)
- Make a schedule to review the backup file once in a month and follow it.
- Do not keep backup on the same server where your code is hosted.
Backup strategies should be designed by considering that your machine/server can crash any time, and you should be up and running without losing any vital info. You should always assume that anything can happen anytime, including the following.
- Your server has been hacked, and the hacker is asking for the colossal ransom amount, which you cannot pay. (This has happened to me twice)
- Your hosting provider has denied access to your server due to any issue (This has also happened to me because a hacker uploaded few files which caused copyright issue and the hosting company denied access to my server)
- Your hosting company suddenly went out of business, and you can no more access the server (There could be many reasons like a ban from the government or any other issue)
It is always a best practice to keep your data backed-up and keep at least seven days backup always ready to be used and keep them at multiple locations (minimum 2).
While taking backups, you should ensure the following.
- Code and database both are backed-up.
- If you have built an app, then keep all the required keys of the project.
- Backups are available to you, even if your server is crashed. (Backups should always be stores on another server)
- Backups are available outside the hosting account as well. (You can ask you development company to write a script to copy the code and database to cloud data services like Dropbox, etc.)
- Copy the backup on a Hard Disc Drive (Replace the Hard Disc Drive once in every three years)
- Keep a monthly check on the backups.
If you have the entire data backup, then in no time with minimum or no loss, you can get back online.
Methods you should adopt for backups.
- Enable backup service provided by your server hosting provider (Make sure the backup is available to you even if the server is not available)
- In case you have your server at home, you should either take manual backups in one external hard drive or keep a wireless hard drive and schedule auto backups.
- Backup on Cloud – Create one script which can copy code and database to cloud storage like Google, Dropbox, etc. and sync that to your PC for local copy. I always back up my server data to Dropbox using a backup script.
Feel free to drop me an email @ [email protected] if you need an auto-backup script for Dropbox.