Mailing List Archive

Re: Backup
I have never used a tape drive in Linux, so this is a shot in the dark,
but do you need an entry in /etc/fstab?

Bob

Ted Ozolins wrote:

> Joseph wrote:
>
>> Why not use rsync; check this webpage and the rsync link.
>> http://www.mikerubel.org/computers/rsync_snapshots/
>>
>>
>>
> Thanks for the link., I'll be giving this a try once I can get the
> tape drive working with gentoo. Everything I've read googling has not
> brought me any closer to using this drive.
> I have ATAPI tape support in the kernel, I have placed "REGISTER
> ^tapes/tape0/mt$ CFUNCTION GLOBAL mksymlink $devname tape" in
> devfsd.conf and /dev/tape is being created. Also /dev/ht0 is being
> created which points to /dev/ide/host0/bus1/target1/lun0/mt whereas
> /dev/tape points to /dev/ide/host0/bus1/target1/lun0/mtn. I'm sure I'm
> missing something basic but can't see the forest for the dang trees.
> Any suggestions?
>
>



--
gentoo-user@gentoo.org mailing list
Re: Backup [ In reply to ]
I back up to tape at work and I do not mount it at all - nor put it in
fstab. I just tar our data to it

<snip from backup.sh>

cd /etc/backup
$MT -f /dev/st0 erase

tar -zcPpf /dev/st0 `cat backup.dirs | grep -v ^#` > master-backup.log
2>&1 > master-backup.log
[ -s master-backup.log ] && cat master-backup.log | mail -s
'master-backup errors' root
rm master-backup.log
$MT -f /dev/st0 offline

</snip>


On Sat, 2004-09-04 at 00:41, singularity@wi.rr.com wrote:
> I have never used a tape drive in Linux, so this is a shot in the dark,
> but do you need an entry in /etc/fstab?
>
> Bob
>
> Ted Ozolins wrote:
>
> > Joseph wrote:
> >
> >> Why not use rsync; check this webpage and the rsync link.
> >> http://www.mikerubel.org/computers/rsync_snapshots/
> >>
> >>
> >>
> > Thanks for the link., I'll be giving this a try once I can get the
> > tape drive working with gentoo. Everything I've read googling has not
> > brought me any closer to using this drive.
> > I have ATAPI tape support in the kernel, I have placed "REGISTER
> > ^tapes/tape0/mt$ CFUNCTION GLOBAL mksymlink $devname tape" in
> > devfsd.conf and /dev/tape is being created. Also /dev/ht0 is being
> > created which points to /dev/ide/host0/bus1/target1/lun0/mt whereas
> > /dev/tape points to /dev/ide/host0/bus1/target1/lun0/mtn. I'm sure I'm
> > missing something basic but can't see the forest for the dang trees.
> > Any suggestions?
> >
> >
>
>
>
> --
> gentoo-user@gentoo.org mailing list
>


--
gentoo-user@gentoo.org mailing list
Re: Backup [ In reply to ]
Hi,

* Ted Ozolins <ted1@telus.net>, Wednesday, September 1, 2004, 6:28:25 PM:

> It seems that although I have /dev/tapes/tape0/mtn I can not access it
> as root or user. Issueing "mt rewind" results in:
> /dev/tape no such device or address
> I have a symlink from /dev/tapes/tape0/mtn>/dev/tape but that doesn't do
> it. Is this then a devfs thing?

What happens if you give the path to your tape as an argument to mt?
For example, if /dev/nst0 is your device:
mt -f /dev/nst0 rewind


Timo


--
gentoo-user@gentoo.org mailing list
Re: Backup [ In reply to ]
Timo Boettcher wrote:

>
>
>What happens if you give the path to your tape as an argument to mt?
>For example, if /dev/nst0 is your device:
>mt -f /dev/nst0 rewind
>
>
> Timo
>
>
exactly the same error as if using the symlink.

--
Ted Ozolins(VE7TVO)
Westbank, B. C


--
gentoo-user@gentoo.org mailing list
Re: Backup [ In reply to ]
Brett Curtis wrote:

> <>I back up to tape at work and I do not mount it at all - nor put it in
> fstab. I just tar our data to it
>
> <snip from backup.sh>
>
> cd /etc/backup
> $MT -f /dev/st0 erase
>
> tar -zcPpf /dev/st0 `cat backup.dirs | grep -v ^#` > master-backup.log
> 2>&1 > master-backup.log
> [ -s master-backup.log ] && cat master-backup.log | mail -s
> 'master-backup errors' root
> rm master-backup.log
> $MT -f /dev/st0 offline
>
> </snip>
>
>
When you setup your tape drive, did you have to use scsi emulation? If
not is /dev/st0 then a symlink to /dev/ide/hostx/busx/targetx/lunx/mt ?

--
Ted Ozolins(VE7TVO)
Westbank, B. C


--
gentoo-user@gentoo.org mailing list
Re: Backup [ In reply to ]
On Wednesday 01 September 2004 06:58, Ted Ozolins wrote:
> Having just been given an STT8000A Seagate tape drive (8Gig), I can't
> wait to try it out. Any suggestions on backup software/solutions would
> be greatly appreciated.
> TIA

tar, cpio is sooo strange ;o)

tar -cf /dev/st0 manymanyoptionsyoucanlookupinmantar (like --exclude=/proc, or
--totals) 1>backup.log 2>backup.error

dont use -W or you will get most probably an illeagel seek error.

I am using the following line for an almost complete sys-backup (I am backing
up /home seperatly):

tar -cf /dev/st0 / --preserve-permissions -vvv --exclude=/proc --exclude=/home
--exclude=/dev --exclude=/sys --exclude=/var/lock --exclude=/tmp --totals
1>backup.log 2>backup.fehler


mt and mtx should be installed to do things like erasing and so on, or to
change some drive settings. Oh, if your drive supports hardware compression,
you should not pack the archive. And if it does do hardware comp, don't
backup films or mp3s with active compression, or it will take ages (have
tried it with a 2/4gb dat, and a 35/70gb dlt).

Glück Auf
Volker


--
Conclusions
In a straight-up fight, the Empire squashes the Federation like a bug. Even
with its numerical advantage removed, the Empire would still squash the
Federation like a bug. Accept it. -Michael Wong

--
gentoo-user@gentoo.org mailing list
Re: Backup <solved> [ In reply to ]
Having ATAPI tape and scsi emulation was not enough to enable this tape
drive. After carefully going over the kernel config, I noticed that I
hadn't included scsi tape support. That was the culprit. I have now
completed a system backup with this tape drive. Thanks for all the replies.

--
Ted Ozolins(VE7TVO)
Westbank, B. C


--
gentoo-user@gentoo.org mailing list
Re: Backup [ In reply to ]
Hemmann, Volker Armin wrote:

> tar, cpio is sooo strange ;o)

historically, cpio has better recovery support on partial streams,
especially with tape archives.

cd / ; find . \( -name lost+found -o -path ./proc -o -path ./sys -o
-path ./home -o -path ./dev -o -path ./tmp -o -path ./var/lock \) -prune
-o -print0 | cpio -o0vH crc -O /dev/st0

to extract

cd $DEST ; cpio -iumdvI /tmp/t

--
gentoo-user@gentoo.org mailing list
Re: Backup [ In reply to ]
Billy Holmes wrote:

> cd $DEST ; cpio -iumdvI /tmp/t
^^^^^^
change to /dev/st0

bah..

--b

--
gentoo-user@gentoo.org mailing list