LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-10-2008, 09:48 AM   #1
rupdipt
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, 03:13 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
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.

See:

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 03:15 PM.
 
  


Reply



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 08:47 AM
How to backup more than one time on same tape using DLT tape? hocheetiong Linux - Newbie 3 01-30-2008 06:54 AM
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 09:15 AM
Tape incremental backup to different tape tungaw2001 Linux - Software 0 08-13-2003 09:42 PM
tape backup joel112 Linux - Software 1 06-04-2003 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:48 AM.

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