Tough times never comes alone and no one wants to face this, but
it may happen to anybody that your site get hacked, your server get
crashed or anything get wrong to your server.
No one can be 100% safe on Internet but if you follow âAlert
today. Alive tomorrow.â, means that any of the failures may not cost
you any loss of data (assuming your backups are 100% up-to-date).
Its a best practice to backup your websites. The most important
tip about backup is to keep it safe. When we talk about backup of your
website then it covers 2 things ie Files and databases.
With backup procurement, there are so many hidden questions
How frequently should backup be taken or delete ?
In todayâs era, Joomla is one of the best options for creating
dynamic websites and as you know in dynamic website things get change
in a flip.
Backing up database is little more challenging, as database changes
very frequently (mostly every few minutes). So its better we backup
our database every 30 minutes.
Once an approach is established it is imperative to test data
restoration periodically to ensure that files are properly backup and
that they have not been corrupted during transportation or
You need to also delete backups which are no more required to
avoid large accumulation of backup. You should delete backups older
than a week.
What to Back up and where to store these back up ?
Backing up is one of the most important things to do when
running a website, it includes your files, database, entire website or
even your server machine like snapshot of current machine. In short -
"Anything that you cannot
afford to lose should, be backed up."
Should place multiple copies of backup at your local
as well as remote server. Therefore you must move your backups
off-site, to manage it properly. In case, your website got hacked or
your server crashed, your backups will remain safe.
Very often people create backups that are empty or corrupted.
Nobody likes a ship that sinks with empty lifeboats so its advisable
to regularly test the restoration of backups in your test / stage
Here are the highly effective tips that we use for our websites.
Setup an automated process to -
Back up website every 24 hour
Verify that it is restorable.
Move backups to off-site e.g. like Amazon-S3, Rackspace
Move one backup every week to Amazon-Glacier to be stored
Delete backups older than 4-6 weeks.
How one should take backup ?
Backup Solutions :
Use backup Extension - In Joomla world you
can use Akeeba backup , the simplest and safest method for taking
backup which essentially require no programming skills. User with
shared server hosting also can use this.
Use any backup Application - Lots of
professional applications are available which create separate backup
of your php files and mysql database separately and then place at
your desired off-site location like Amazon-s3, rackspace. Itâs
independent of CMS.
Utilize Website hosting software - Now a
days, most of hosting providers provide back up software tool. So
within a click in your cpanel you can create backup of your site.
Itâs not advisable to put all your secret data in hands of 3rd party
Build your own custom script - If you have
huge database and numerous files then it is difficult to manage such
backups on hourly or daily basis. So in that case you may need to
have automated scripts to take this backup.
And Today itâs all about geeky backups, so we use shell script. You
need to have some good hands with SSH (Need VPS
Hosting) and have access of crontab.
â Donât go with generalization, build your own customization.â
With this automatic script you can take full backup of your
files, folders and databases within a minute. It will compress all
of them and move backup to to off site.
This script will then automatically delete old
files as per defined time, so that you donât get rid of old backups
and donât run out of hard disk space. In short, you donât do
anything just type a single command to secure your
Disaster could strike at any time to anyone. Back up your website now
and back it up every day. If a nightmare strikes, you'll be ready to
take control and get back online within minutes. If having any doubt in
using this automate process for your website then drop
your comment and we love to help you out.
In our next blog of this educational series we will provide our best
practices for âHow to manage test and stage serverâ.