Backup home directories in Linux
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:
- Mount NFS filesystem in two different directories on same system
- How To Use rsync Command To Backup Directory Under Linux
- What you need to back up on Linux to recover
- Verify tar command tape backup under Linux or UNIX
- Restore Selected Files From Secondary Backup Hard Disk
Discussion on This FAQ
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!




January 8th, 2008 at 7:08 am
This site is extremely helpful in learning scsi tape backup in Linux. I wish you good luck and thank you all for the help.