Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-10-2008, 10:48 AM   #1
LQ Newbie
Registered: Nov 2008
Posts: 4

Rep: Reputation: 0
Script for tape backup

I am new to linux and i need to create a script to backup data on two partitions on my hard disk to an tape drive.How do i go about the same??
Old 11-10-2008, 04:13 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,773

Rep: Reputation: 291Reputation: 291Reputation: 291
Use two tar commands to pack the partitions into tarballs and write the files to tape. (tar is a contraction for tape archive). If you want to use compression the first tar command will be roughly along the lines of:

tar -czf /dev/tape /path/to/data/*

The second command could add place the second partition on the second file on the tape or on a separate tape depending on the space needed.


man tar

Then create a file containing your tar commands and whatever other commands you want in the script. Make the script command executable.

Steve Stites

Last edited by jailbait; 11-10-2008 at 04:15 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup on tape joeldhanaraj Linux - Server 4 02-13-2008 09:47 AM
How to backup more than one time on same tape using DLT tape? hocheetiong Linux - Newbie 3 01-30-2008 07:54 AM
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 10:15 AM
Tape incremental backup to different tape tungaw2001 Linux - Software 0 08-13-2003 10:42 PM
tape backup joel112 Linux - Software 1 06-04-2003 02:01 PM

All times are GMT -5. The time now is 03:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration