About Linux FAQ

Browse More FAQs:

Advertisements

Backup home directories in Linux

Posted by Vivek Gite [Last updated: January 12, 2007]

Q. I would like to Backup all directories in /home to /dev/st0 tape drive. How do I use script to automate task and what commands do I need to use?

A. Use tar command to backup /home directory. The GNU version of the tar archiving utility included with all Linux distributions. Following tar command also works with Solaris/HP-UX UNIX and FreeBSD/*BSD oses.

For example tar command to backup /home should be as follows:
# tar -czf /dev/st0 /home

Where,
=> /dev/st0 : Linux SCSI Tape device name
=> /home : Home directory name
Since this topic is already covered, please refer scripts and previous posts:

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Other Helpful FAQs:

Discussion on This FAQ

  1. Partha Chakraborty Says:

    This site is extremely helpful in learning scsi tape backup in Linux. I wish you good luck and thank you all for the help.

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.