<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Linux Tape Backup With mt And tar Command Howto</title> <atom:link href="http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Abdull</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-67895</link> <dc:creator>Abdull</dc:creator> <pubDate>Fri, 10 Feb 2012 05:22:15 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-67895</guid> <description>ubunut/linux has been left beinhd quite a bit. i&#8217;m open to any helping out   especially for linux and macos</description> <content:encoded><![CDATA[<p>ubunut/linux has been left beinhd quite a bit. i&#8217;m open to any helping out   especially for linux and macos</p> ]]></content:encoded> </item> <item><title>By: Poppy</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-67781</link> <dc:creator>Poppy</dc:creator> <pubDate>Tue, 07 Feb 2012 03:10:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-67781</guid> <description>Just to avoid snomoee having to spend a few hours restoring from backups; The first example would copy the files from server Y to server X, not the other way around.</description> <content:encoded><![CDATA[<p>Just to avoid snomoee having to spend a few hours restoring from backups; The first example would copy the files from server Y to server X, not the other way around.</p> ]]></content:encoded> </item> <item><title>By: mahesh</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-60287</link> <dc:creator>mahesh</dc:creator> <pubDate>Tue, 28 Jun 2011 04:58:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-60287</guid> <description>Hi all,
Please tell me how to find free space in the tape drive.
And how to restore the backup from the tape drive ( have to move the backup to other server).
Please give me clarity about tape drive information because iam confused about tape drive.
Thanks in adv...</description> <content:encoded><![CDATA[<p>Hi all,</p><p>Please tell me how to find free space in the tape drive.<br
/> And how to restore the backup from the tape drive ( have to move the backup to other server).<br
/> Please give me clarity about tape drive information because iam confused about tape drive.</p><p>Thanks in adv&#8230;</p> ]]></content:encoded> </item> <item><title>By: martin</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-56549</link> <dc:creator>martin</dc:creator> <pubDate>Tue, 22 Mar 2011 19:43:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-56549</guid> <description>Hi,
My files are backed up as
srv/scripts/...
srv/www/.,..
srv/blablabla...
How to restore file srv/www/site1 to home dir?
Is it just
cd TOTHEDIRIWANTFILETOBERESTORED
# tar -xzf /dev/st0 srv/www/site1
?
Thank you</description> <content:encoded><![CDATA[<p>Hi,</p><p>My files are backed up as<br
/> srv/scripts/&#8230;<br
/> srv/www/.,..<br
/> srv/blablabla&#8230;</p><p>How to restore file srv/www/site1 to home dir?<br
/> Is it just<br
/> cd TOTHEDIRIWANTFILETOBERESTORED<br
/> # tar -xzf /dev/st0 srv/www/site1<br
/> ?<br
/> Thank you</p> ]]></content:encoded> </item> <item><title>By: Marsupilamies</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-56338</link> <dc:creator>Marsupilamies</dc:creator> <pubDate>Wed, 16 Mar 2011 07:53:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-56338</guid> <description>I&#039;ve noticed a trouble when you&#039;re not on english system (for exemple, mine, french):
NOW=$(date +&quot;%a&quot;)  gives not &quot;Mon&quot; for monday but &quot;Lun.&quot;
Maybe you can change NOW=$(date +&quot;%a&quot;)  by NOW=$(date +&quot;%u&quot;), so $NOW will be a number (the same in each system).
And just change:
case $NOW in
Mon )	full_backup;;
Tue&#124;Wed&#124;Thu&#124;Fri) 	partial_backup;;
*) ;;
by:
case $NOW in
1)	full_backup;;
2&#124;3&#124;4&#124;5) 	partial_backup;;
*) ;;
Hope it&#039;ll help ;-)</description> <content:encoded><![CDATA[<p>I&#8217;ve noticed a trouble when you&#8217;re not on english system (for exemple, mine, french):<br
/> NOW=$(date +&#8221;%a&#8221;)  gives not &#8220;Mon&#8221; for monday but &#8220;Lun.&#8221;<br
/> Maybe you can change NOW=$(date +&#8221;%a&#8221;)  by NOW=$(date +&#8221;%u&#8221;), so $NOW will be a number (the same in each system).</p><p>And just change:<br
/> case $NOW in<br
/> Mon )	full_backup;;<br
/> Tue|Wed|Thu|Fri) 	partial_backup;;<br
/> *) ;;</p><p>by:<br
/> case $NOW in<br
/> 1)	full_backup;;<br
/> 2|3|4|5) 	partial_backup;;<br
/> *) ;;</p><p>Hope it&#8217;ll help ;-)</p> ]]></content:encoded> </item> <item><title>By: Lucy Clark</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-55473</link> <dc:creator>Lucy Clark</dc:creator> <pubDate>Wed, 09 Feb 2011 16:16:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-55473</guid> <description>I need help writing a script for Linux that will copy everything from tape to system directory. I built a Linux box with 3 TB hardware space.  Now I have 60 tapes to move data from on to the system directory. I am using the following commands in order
1) mt  –f  /dev/st0 rewind
2) tar  –xvf /dev/st0
3) tar –xvf /dev/st0 fsf (Using this to move to the next segment of the tape)
and then
4) tar -xvf/dev/st0
I keep repeating steps 3 and 4 until the end of the tape.  This is very cumbersome.  Being a nubie with Linux I am not sure how to simply the process. I am thinking there has to be a way of having the above in shell script or a command that copies everything from tape to system directory of the new box.
Thanks for your help</description> <content:encoded><![CDATA[<p>I need help writing a script for Linux that will copy everything from tape to system directory. I built a Linux box with 3 TB hardware space.  Now I have 60 tapes to move data from on to the system directory. I am using the following commands in order<br
/> 1) mt  –f  /dev/st0 rewind<br
/> 2) tar  –xvf /dev/st0<br
/> 3) tar –xvf /dev/st0 fsf (Using this to move to the next segment of the tape)<br
/> and then<br
/> 4) tar -xvf/dev/st0</p><p>I keep repeating steps 3 and 4 until the end of the tape.  This is very cumbersome.  Being a nubie with Linux I am not sure how to simply the process. I am thinking there has to be a way of having the above in shell script or a command that copies everything from tape to system directory of the new box.<br
/> Thanks for your help</p> ]]></content:encoded> </item> <item><title>By: Camilo Macias</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-50684</link> <dc:creator>Camilo Macias</dc:creator> <pubDate>Thu, 11 Nov 2010 22:14:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-50684</guid> <description>Hi everyone!!!!
I&#039;m trying to record my Backp in a DAT 72 tape.
I&#039;m using the following command:
tar cvMf /dev/nst0 $(date --date=&#039;1 month ago&#039; +&#039;%B&#039;&#039;%Y&#039;)
and in some part of the recording... shows the message:
Prepare volume #2 for `/dev/nst0&#039; and hit return:
I know it&#039;s an stupid question, but....
I&#039;ve done everything to eject &quot;volume #1&quot; from the drive,
but anything works....
I&#039;ve pushed &quot;Enter&quot;, but, it just read the same tape,
and shows the message again:
repare volume #3 for `/dev/nst0&#039; and hit return:
I&#039;ve pushed the button &quot;eject&quot; right from the drive, nothing happens..
I&#039;ve writen the eject command as follows:
mt -f /dev/nst0 eject
But once again.... nothing happens...
Am I doing something wrong??
Your support and guidance will be very helpfull.
Thanks!
pdt: Sorry for my horrible english! I&#039;m from Bogota, Colombia.</description> <content:encoded><![CDATA[<p>Hi everyone!!!!<br
/> I&#8217;m trying to record my Backp in a DAT 72 tape.</p><p>I&#8217;m using the following command:</p><p>tar cvMf /dev/nst0 $(date &#8211;date=&#8217;1 month ago&#8217; +&#8217;%B&#8221;%Y&#8217;)</p><p>and in some part of the recording&#8230; shows the message:</p><p>Prepare volume #2 for `/dev/nst0&#8242; and hit return:</p><p>I know it&#8217;s an stupid question, but&#8230;.<br
/> I&#8217;ve done everything to eject &#8220;volume #1&#8243; from the drive,<br
/> but anything works&#8230;.<br
/> I&#8217;ve pushed &#8220;Enter&#8221;, but, it just read the same tape,<br
/> and shows the message again:</p><p>repare volume #3 for `/dev/nst0&#8242; and hit return:</p><p>I&#8217;ve pushed the button &#8220;eject&#8221; right from the drive, nothing happens..<br
/> I&#8217;ve writen the eject command as follows:</p><p>mt -f /dev/nst0 eject</p><p>But once again&#8230;. nothing happens&#8230;</p><p>Am I doing something wrong??<br
/> Your support and guidance will be very helpfull.</p><p>Thanks!</p><p>pdt: Sorry for my horrible english! I&#8217;m from Bogota, Colombia.</p> ]]></content:encoded> </item> <item><title>By: Jane</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-50135</link> <dc:creator>Jane</dc:creator> <pubDate>Sat, 16 Oct 2010 05:39:24 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-50135</guid> <description>I tried using the multiple tape option. Since my data is now bigger than my tape.  However, it does not prompt me to put in the next tape the backup would just stop.  Is there a way to pause and wait for the next tape to be inserted?
Cheers!</description> <content:encoded><![CDATA[<p>I tried using the multiple tape option. Since my data is now bigger than my tape.  However, it does not prompt me to put in the next tape the backup would just stop.  Is there a way to pause and wait for the next tape to be inserted?</p><p>Cheers!</p> ]]></content:encoded> </item> <item><title>By: Chandrakant</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-49832</link> <dc:creator>Chandrakant</dc:creator> <pubDate>Thu, 30 Sep 2010 14:52:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-49832</guid> <description>Hello,
I am using  IBM Server with OS RHEL ver 5.0
I am using tar command to take the backup as follows
tar -cvfr /dev/st0 ---file names---
This is appending the files to earlier backups no of times.
How to list out all  files available in the dat?
How to restore the files which have appended no of times. i.e. 2,3,4,5 ---.
Will you help me with the examples.</description> <content:encoded><![CDATA[<p>Hello,<br
/> I am using  IBM Server with OS RHEL ver 5.0<br
/> I am using tar command to take the backup as follows<br
/> tar -cvfr /dev/st0 &#8212;file names&#8212;<br
/> This is appending the files to earlier backups no of times.<br
/> How to list out all  files available in the dat?<br
/> How to restore the files which have appended no of times. i.e. 2,3,4,5 &#8212;.<br
/> Will you help me with the examples.</p> ]]></content:encoded> </item> <item><title>By: Gopinath</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-46851</link> <dc:creator>Gopinath</dc:creator> <pubDate>Mon, 12 Apr 2010 11:31:32 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-46851</guid> <description>Hello ,
thanking for this help menu... How we check the size of tape after writing or tack backup files ...</description> <content:encoded><![CDATA[<p>Hello ,</p><p> thanking for this help menu&#8230; How we check the size of tape after writing or tack backup files &#8230;</p> ]]></content:encoded> </item> <item><title>By: Yusoff</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-46792</link> <dc:creator>Yusoff</dc:creator> <pubDate>Thu, 08 Apr 2010 06:15:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-46792</guid> <description>Very useful article.
Just one thing to add. I tried the various commands above. For my end, when I run the command:-
# tar -clpMzvf /dev/nst0 /home
I got the following error:-
Cannot use Multi-volume compressed archive.
So I had to drop the &quot;z&quot; before it runs.
Just wondering if you&#039;d know the reason why. In any case, just to highlight.</description> <content:encoded><![CDATA[<p>Very useful article.</p><p>Just one thing to add. I tried the various commands above. For my end, when I run the command:-<br
/> # tar -clpMzvf /dev/nst0 /home<br
/> I got the following error:-<br
/> Cannot use Multi-volume compressed archive.</p><p>So I had to drop the &#8220;z&#8221; before it runs.<br
/> Just wondering if you&#8217;d know the reason why. In any case, just to highlight.</p> ]]></content:encoded> </item> <item><title>By: mahesh</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-46194</link> <dc:creator>mahesh</dc:creator> <pubDate>Mon, 01 Mar 2010 06:12:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-46194</guid> <description>&lt;code&gt;part3/radhika/Maildir/.Sent/cur/1214196153.M754850P28131V0000000000001609I004A8301_0.webmail.srishti,S=60346:2,S
tar: /dev/st0: Cannot write: No space left on device
tar: Error is not recoverable: exiting now&lt;/code&gt;
no I want to know that in this case Backup is happen or not.
please Reply me as soon as possible.</description> <content:encoded><![CDATA[<p><code>part3/radhika/Maildir/.Sent/cur/1214196153.M754850P28131V0000000000001609I004A8301_0.webmail.srishti,S=60346:2,S</p><p>tar: /dev/st0: Cannot write: No space left on device</p><p>tar: Error is not recoverable: exiting now</code></p><p>no I want to know that in this case Backup is happen or not.</p><p>please Reply me as soon as possible.</p> ]]></content:encoded> </item> <item><title>By: Shafi Mohammad</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-45013</link> <dc:creator>Shafi Mohammad</dc:creator> <pubDate>Fri, 04 Dec 2009 06:33:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-45013</guid> <description># mount (disk name like = &lt;b&gt;/dev/sdc1&lt;/b&gt;) /mnt/backup</description> <content:encoded><![CDATA[<p># mount (disk name like = <b>/dev/sdc1</b>) /mnt/backup</p> ]]></content:encoded> </item> <item><title>By: Jorge</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-44887</link> <dc:creator>Jorge</dc:creator> <pubDate>Wed, 25 Nov 2009 15:07:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-44887</guid> <description>You can&#039;t use -M (multiple tapes) with -z option (compression).
$ tar -clpMzvf /dev/st0 /anydir
tar: Cannot use multi-volume compressed archives</description> <content:encoded><![CDATA[<p>You can&#8217;t use -M (multiple tapes) with -z option (compression).</p><p>$ tar -clpMzvf /dev/st0 /anydir<br
/> tar: Cannot use multi-volume compressed archives</p> ]]></content:encoded> </item> <item><title>By: k -dat software in redhat linux</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-44761</link> <dc:creator>k -dat software in redhat linux</dc:creator> <pubDate>Wed, 18 Nov 2009 15:05:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-44761</guid> <description>my k-dat software is crashed
what is solution</description> <content:encoded><![CDATA[<p>my k-dat software is crashed<br
/> what is solution</p> ]]></content:encoded> </item> <item><title>By: Anoop</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-42650</link> <dc:creator>Anoop</dc:creator> <pubDate>Mon, 20 Jul 2009 19:10:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-42650</guid> <description>I just wanted the TAR commands to Backup my data in etc folder to Tape media in Red hat enterprise  5.3 Linux OS. The mt option is not enabled then how can i verify  and rewind the files written on the Tape ?  How to enable the mt commands in Linux?
Please let me know about this. I can see both the Tape Drives in the Library online from the Host operating system ( Red hat Entrerprise Linux 5.3 ).</description> <content:encoded><![CDATA[<p>I just wanted the TAR commands to Backup my data in etc folder to Tape media in Red hat enterprise  5.3 Linux OS. The mt option is not enabled then how can i verify  and rewind the files written on the Tape ?  How to enable the mt commands in Linux?</p><p>Please let me know about this. I can see both the Tape Drives in the Library online from the Host operating system ( Red hat Entrerprise Linux 5.3 ).</p> ]]></content:encoded> </item> <item><title>By: rafi</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-42405</link> <dc:creator>rafi</dc:creator> <pubDate>Tue, 07 Jul 2009 07:01:29 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-42405</guid> <description>thanks to all of you</description> <content:encoded><![CDATA[<p>thanks to all of you</p> ]]></content:encoded> </item> <item><title>By: roberto</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-41911</link> <dc:creator>roberto</dc:creator> <pubDate>Thu, 04 Jun 2009 04:34:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-41911</guid> <description>Thank you! Works great.</description> <content:encoded><![CDATA[<p>Thank you! Works great.</p> ]]></content:encoded> </item> <item><title>By: Paolo</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-41486</link> <dc:creator>Paolo</dc:creator> <pubDate>Tue, 05 May 2009 14:12:14 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-41486</guid> <description>Thank you very much for this tutorial. It&#039;s really useful.
Thanks to Daniele too.</description> <content:encoded><![CDATA[<p>Thank you very much for this tutorial. It&#8217;s really useful.</p><p>Thanks to Daniele too.</p> ]]></content:encoded> </item> <item><title>By: Daniele</title><link>http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/#comment-39651</link> <dc:creator>Daniele</dc:creator> <pubDate>Tue, 30 Dec 2008 01:48:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-tape-backup-with-mt-and-tar-command-howto.php#comment-39651</guid> <description>For multiple tapes just add the -M option.
Typical use:
tar -clpMzvf /dev/st0 /anydir    &lt;--- to backup to tape
tar -dlpMzvf /dev/st0 /anydir   &lt;--- to compare
tar -xlpMzvf /dev/st0 /anydir    &lt;--- to restore</description> <content:encoded><![CDATA[<p>For multiple tapes just add the -M option.</p><p>Typical use:<br
/> tar -clpMzvf /dev/st0 /anydir    &lt;&#8212; to backup to tape<br
/> tar -dlpMzvf /dev/st0 /anydir   &lt;&#8212; to compare<br
/> tar -xlpMzvf /dev/st0 /anydir    &lt;&#8212; to restore</p> ]]></content:encoded> </item> </channel> </rss>
