ComTech: IT Support Stirling
TwitterFacebookGoogle

How to schedule a backup in Ubuntu 12.04


Today I will show you how to schedule a backup in Ubuntu 12.04 using cron.

The cron daemon uses the crontab file  (think Task Scheduler in Windows) which allows you to set the backup schedule. The beauty of using cron is that it works ON ALL LINUX DISTRIBUTIONS not just Ubuntu. You don’t even need to install cron as it comes installed by default.

Ok time to get your hands dirty.  Open up a terminal and type “su” and when prompted enter your root password.  Next you want to open up the crontab file so type “nano /etc/crontab” in a terminal.  The crontab file should look similar to the table below.

 

M H Dom Mon Dow User Command
1 9 * * * Root Tar -cvf/media/dev/sdb/backup.tar /home

Where:

M = minutes

H = hours

Dom = every day in the month

Mon = every month

Dow = every day of week (e.g 1-5 would be Monday to Friday inclusive)

User = user who can perform this task

Command = what is getting backed up and where is it getting sent to

Lets explain this a bit. In the above example I have backed up a folder called home (/home) to a folder called backup.tar which is on sdb (/dev/sdb/backup.tar) at 1 minute past 9 everyday in the month, every month.  The authorised user is root and the command to be used is Tar -cvf.

When you have configured the crontab file save it and exit.  Your backup schedule is now set.

About the Author

P1020114

Hi I am Chris Wakefield the owner of ComTech IT Support. I provide Windows and Linux based IT Support, laptop repairs and computer repairs to both business and personal clients throughout Stirling, Falkirk and Clackmannanshire.

For a list of what I can offer you why not visit my website www.comtech247.net where you will find a list of my services, testimonials, blog and much more!!

How to schedule a backup in Small Business Server 2011

Most small companies who require a server for their network will be using Microsoft Small Business Server.  Today we will be looking at Small Business Server 2011 Essentials, specifically using the inbuilt tools to backup the server.  These steps will work on all variants of the Small Business Server 2011 software.

For this tutorial I have Small Business Server 2011 Essentials installed inside a virtual machine using Virtualbox.

First thing we need to do is access the backup utility.

Start – All programs – Accessories – System Tools – Windows Server backup

You should get the screenshot below.

Now we need to schedule a backup so click on Backup Schedule (top right) to start the wizard.  On the following page click next.


You should now be faced with the Select Backup Configuration page as shown below.

In my experience unless you have a specific need to backup only certain parts of the server configuration it is easier and safer to backup the full configuration.  Once you have decided click next.

On the following page you are asked to set the backup schedule.  Choose a schedule that suits you and then click next.

You will now be asked to specify the backup destination as shown below.

What you do next is determined by your backup strategy.  If your strategy is to backup to external hard drives then click on Back up to a hard disk that is dedicated for backups.  If your strategy is to backup to a network share (as is the purpose of this tutorial) click on Back up to a shared network folder. Once decided click next.

Word of warning if you backup to a network share your existing backup will get overwritten each time so you only have one backup on the share.

Because I specified a network share I now have to tell the server where that share is.

When you have specified the backup location click on next.  You will then be asked for network credentials to access the share.

On the final page review the backup schedule and click finish.  Your backups will now be taken at the time you specified.  Just remember to have your server switched on!!

About the Author

Hi I am Chris Wakefield the owner of ComTech IT Support. I provide Windows and Linux based IT Support, laptop repairs and computer repairs to both business and personal clients in and around Stirling.

For a list of what I can offer you why not visit my website www.comtech247.net where you will find a list of my services, testimonials, blog and much more.

 

How to schedule a backup in Linux Mint 12


Today I will show you how to schedule a backup in Linux Mint 12 so that your precious data is safe.

Linux Mint 12 comes with the Backup Tool shown below which allows you to backup your data and software installed on the system but unfortunately it doesn’t allow you to schedule backups.  For that we need the cron daemon.

The cron daemon uses the crontab file  (think Task Scheduler in Windows) which allows you to set the backup schedule.  The beauty of using cron is that it works ON ALL LINUX DISTRIBUTIONS not just Linux Mint. You don’t need to install cron as it comes installed by default.

Ok time to get your hands dirty.  Open up a terminal and type “su” and when prompted enter your root password.  Next you want to open up the crontab file.

Next type “gedit /etc/crontab” in a terminal.  The crontab file should look similar to the table below.

 

M H Dom Mon Dow User Command
1 9 * * * Root Tar -cvf/media/dev/sdb/backup.tar /home

Where:

M = minutes

H = hours

Dom = every day in the month

Mon = every month

Dow = every day of week (e.g 1-5 would be Monday to Friday inclusive)

User = user who can perform this task

Command = what is getting backed up and where is it getting sent to

So in the above example I have backed up a folder called home (/home) to a folder called backup.tar which is on sdb (/dev/sdb/backup.tar) at 1 minute past 9 everyday in the month, every month.  The authorised user is root and the command to be used is tar -cvf.

When you have configured the crontab file save it and exit.  Your backup schedule is now set.

About the Author

Hi I am Chris the owner of ComTech. I provide IT Support, Laptop repairs and Computer repairs to both personal and business clients in and around Stirling. For a list of what I can offer you why not visit my website www.comtech247.net where you will find my blog, testimonials, services and much more.  Start supporting a local business today so I can start supporting you.

If you found this blog useful then why not sign up to my RSS Feed for news, tutorials, views and general techie stuff!!

 

 

 

CyberChimps
Follow

Get every new post delivered to your Inbox

Join other followers

WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera
WP Like Button Plugin by Free WordPress Templates