ComTech: IT Support Stirling

Backing up in Linux

ComTech: IT Support Stirling

Today we are going to explore how to back up your work in Linux.  Linux has many different ways to back up your data but one of the best is to use the crontab file, so lets take a look.

Open up a terminal and type “su” and when prompted enter your root password.  Next you want to open up the crontab file (think Task Scheduler in windows).

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


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.

About the Author

Hi I am Chris the owner of ComTech. I provide IT Support 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 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!!



3 thoughts on “Backing up in Linux

  1. I would like to thank you a lot for that job you have made in writing this post. I am hoping the same most effective job from you in the future too.

  2. As I web-site possessor I believe the content material here is rattling excellent , appreciate it for your efforts. You should keep it up forever! Best of luck.

Leave a comment

Your email address will not be published.


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