Re: backup howto needed!
On Thu, 19 Mar 1998, Mario Olimpio de Menezes wrote:
> I just received a sony dds tape drive for our linux server and
> now I would like to do backups of some data.
> I have tried with tar but with little success; I can do a
> tar cvf /dev/st0 /home and it seems to do the job. But I wasn't able to
> recover a single file from the tape with tar xf /dev/st0 file_to_extract.
> Could somebody help me with basics steps to backup? A howto
> would be fine, if there is some!
> Maybe there is a better way to do! Someone here?
Mario
I'm going through that wih my SCSI QIC-3080 tape drive. I have been able
to backup a small colletion of files and restore them using the commands
I will list here.
I am using afio. My commands are
mt -f /dev/st0 erase
(otherwise you don't get reliable results)
find . > filelist
Edit or otherwise adjust filelist
Create archive on tape:
cat filelist | afio -ovZ /dev/st0
To get a directory of the tape archvie,
afio -tvZ /dev/st0
Note that this accepts some defaults you may not find desirable. Please
read the man page. Your mileage may vary.
To extract the whole archive
afio -ivnZ /dev/st0
to extract files matching a pattern,
afio -ivnZ -y include-pattern -Y exclude-pattern /dev/st0
These patterns are shell regular expressions.
There are many free packages that do backups, some excellent, some
so-so. There are some commercial packages for Linux (Bru, which I don't
use. I only recall the name, and that some commercial Linux distributes
Bru with Linux.)
I found some scripts in /usr/doc/examples/afio/* I may use, or perhaps I
wlll use them for suggestions for my own scripts.
I hope this this helps.
--David
-------------------------------------------------------------------
LINUX: the FREE 32 bit OS for [3456]86 PC's available NOW!
David B Teague | Ask me how user interface copyrights & software
teague@wcu.edu | patents make programing a dangerous business.
spy counter-intelligence wild porno sex gold bullion Soviet Bosnia
ammonium nitrate fuel oil cocaine assassinate counterfeit destabilize
Reply to: