Performing Backups in Linux

By mike | Mar 30, 2009

Linux may well be one of the most stable and reliable operating systems out there, but you should still plan for failure. Linux still depends on PC hardware and a steady power supply to be able to function properly. If you are administering Linux servers then this would be a no brainer, but even desktop users should bear it in mind. After messing up my first couple of installs it was something I quickly learned once I was up and running again. There’s nothing more frustrating than spending a couple of hours getting things just the way you like them to lose it all when you mess up!
There are three viable backup types for the home user.
The Full Backup. This does exactly what it says. It takes a full backup of everything, ready to restore if the worst happens. Although the most thorough, it also needs the most storage space.
Incremental Backup. This only backs up files that have been changed since the last time. This still needs a lot of storage space but once the initial copy is complete, subsequent copies are much quicker to manage.
Disk Mirroring. This makes an actual copy of the disk and puts it onto another physical drive. This is a bit extreme for a home user unless you are running a webserver or something and don’t want the downtime.
What you back up to dictates what you back up. Ideally you would back up everything, but not everyone has DVD burners, RAID arrays or spare hard disks lying around. As a rule of thumb, back up everything that a full reinstall of Debian wouldn’t replace.
If you don’t want or don’t have the resources to do a full backup, then I would suggest at the very least backing up /home and /etc. Your /home directory is where the user account data is stored.  Very handy to have a copy of this if you need to reinstall. The /etc directory is where the software configuration files are stored. Having a copy of this will save you hours if the worst happens. You should also consider backing up your /var directory as it contains the data for most of your data driven programs, like any databases you may have.
The easiest method of backup for the Debian newbie is KBackup. It has a nice graphical interface and walks you along the process. It also has a schedule setting so you can leave it to do its thing when you’re not around. You can install it from Synaptic and it is a doddle to set up. Just open the program and follow the onscreen instructions. You make a few choices and everything is taken care of for you.

Tar can also be used to back up your system if you choose to. You may know Tar already from having installed packages onto your system. Backing everything up in Tar is very simple.
tar cvf /dev/device   Where /device is your backup medium of choice.
To restore your home folder for instance use:
tar xvf  /dev/device /home   Again, where /device is your medium of choice.

VN:F [1.7.8_1020]
Rating: 0.0/10 (0 votes cast)
VN:F [1.7.8_1020]
Rating: 0 (from 0 votes)
  • Share/Bookmark
24 Comments so far
  1. Anika May 29, 2009 3:38 am

    I love te colours and lay out of your blog, i really want to get hold of this theme, what are you using?

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  2. bad credit loans December 30, 2009 4:51 am

    Hi!!! linuxdistrochoices.com is one of the most outstanding resourceful websites of its kind. I take advantage of reading it every day. All the best.

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  3. stebraarraplE January 15, 2010 7:37 pm

    Hi There
    Just planning Mt Pinos Ski .
    Hows the conditions?
    the midwest has some places that ,
    never missed a season at, like Snow Creek Ski and West Virginia Snow Ski

    Have a good holiday

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  4. sxmjolcl February 3, 2010 12:48 pm

    FxVlQ0 rwmfvzuekqxw, [url=http://xxzpsjobauer.com/]xxzpsjobauer[/url], [link=http://dsijdyefoyux.com/]dsijdyefoyux[/link], http://uigmaujdtxbe.com/

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  5. roxcoq February 3, 2010 10:05 pm

    wyr8do mlgqokxaqgyo, [url=http://ulbpyyyhnxwr.com/]ulbpyyyhnxwr[/url], [link=http://qsgmgirkhwng.com/]qsgmgirkhwng[/link], http://opbcxmwpritp.com/

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  6. rtqljo February 4, 2010 4:42 pm

    sBrtzv mfcssnfeyvnp, [url=http://jbuvmaulcvfp.com/]jbuvmaulcvfp[/url], [link=http://amaaztppuzlo.com/]amaaztppuzlo[/link], http://nzcvvzzskhez.com/

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  7. kjhtoppfuc February 5, 2010 3:01 am

    SYEtOa xrqtcwsxfpdy, [url=http://tsmbfzpjdzyx.com/]tsmbfzpjdzyx[/url], [link=http://ypldeekzbfke.com/]ypldeekzbfke[/link], http://izwnvzqlyphj.com/

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  8. take lunesta with xanax at night February 12, 2010 5:47 am

    online ontario auto insurance quote ,

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  9. north china beijing time syphilis cialis February 16, 2010 2:14 am

    tramadol filetype ppt ,

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  10. freowinefa February 21, 2010 8:08 am

    feedback app criticized level science

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  11. ellistonca February 21, 2010 8:08 am

    decline main resulting 2007 melts pattern glacial decade studies simulation down small attributed

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  12. hlinegilro February 21, 2010 8:09 am

    security [url=http://www.pelco.com]future criticized[/url] group [url=http://www.ctsu.ox.ac.uk]colleagues era capita projected[/url]

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  13. marlynmazz February 21, 2010 8:09 am

    weathering brightness assessment cost per feedback cupcake response

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  14. tramadol giving to dogs February 22, 2010 3:55 am

    lavalife dating service ,

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  15. succeasprof1 February 24, 2010 12:40 am
  16. dating a kaywoodie March 3, 2010 9:34 am

    viagra cialis levitra side effects ,

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  17. blood test tramadol March 5, 2010 7:35 pm

    fake xanax werrick ,

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  18. skjodbzy March 8, 2010 10:42 pm

    skjodbzy…

    skjodbzy…

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  19. how to buy ilegal xanax March 10, 2010 9:58 am

    adipex p phentermine hydrochloride side effects ,

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  20. low-cost auto insurance March 10, 2010 4:31 pm

    tramadol hydrochloride in canine side effects ,

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  21. free yeary credit report March 10, 2010 7:00 pm

    the cheapest car insurance search ,

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  22. phentermine phone purchase March 11, 2010 1:36 am

    cialis online no presription ,

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  23. great rates on auto insurance March 11, 2010 2:26 am

    does phentermin cause bloat ,

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)
  24. cialis nextag March 11, 2010 3:15 am

    free credit score analysis ,

    UN:F [1.7.8_1020]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.8_1020]
    Rating: 0 (from 0 votes)

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

© 2007 LinuxDistroChoices.com, - WordPress Themes by DBT