Unix Technical Forum

tar backup to tape question

This is a discussion on tar backup to tape question within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> Hi all, I'm backupping data in /home to tape using tar. But I get it only working when I ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 04:53 AM
Dekkers Intermediair
 
Posts: n/a
Default tar backup to tape question

Hi all,

I'm backupping data in /home to tape using tar.
But I get it only working when I backup the whole /home directory with
tar -cf /dev/rst0 /home,
while I would like to backup not all directories in /home, but only a
selection. I tried to use several tar commands in a row with tar -cf
/dev/nrst0 ..., but only from the first tar I can restore data

What do I do wrong? Or do I ask for something impossible?

--
Dimitry Schoenmakers
The Netherlands

===+=====+===
Please remove the nospam part from my e-mail when replying directly to me.
Thanks.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 04:53 AM
Georg Klein
 
Posts: n/a
Default Re: tar backup to tape question

In article <3faa0949$0$150$e4fe514c@dreader5.news.xs4all.nl >, Dekkers Intermediair wrote:
> Hi all,
>
> I'm backupping data in /home to tape using tar.
> But I get it only working when I backup the whole /home directory with
> tar -cf /dev/rst0 /home,
> while I would like to backup not all directories in /home, but only a
> selection. I tried to use several tar commands in a row with tar -cf
> /dev/nrst0 ..., but only from the first tar I can restore data
>
> What do I do wrong? Or do I ask for something impossible?
>


Hi,

first of all have a look at the man-page for other options
of tar.
Try to run
#tar -cf /dev/rst0 /home/dir1 /home/dir2 ...
That will do the job.

georg
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 04:53 AM
Dekkers Intermediair
 
Posts: n/a
Default Re: tar backup to tape question

"Georg Klein" <backspace@freenet.de> schreef in bericht
news:slrnbqk2uu.b6u.backspace@slacky.gkln.net...
> In article <3faa0949$0$150$e4fe514c@dreader5.news.xs4all.nl >, Dekkers

Intermediair wrote:
> > Hi all,
> >
> > I'm backupping data in /home to tape using tar.
> > But I get it only working when I backup the whole /home directory with
> > tar -cf /dev/rst0 /home,
> > while I would like to backup not all directories in /home, but only a
> > selection. I tried to use several tar commands in a row with tar -cf
> > /dev/nrst0 ..., but only from the first tar I can restore data
> >
> > What do I do wrong? Or do I ask for something impossible?
> >

>
> Hi,
>
> first of all have a look at the man-page for other options
> of tar.
> Try to run
> #tar -cf /dev/rst0 /home/dir1 /home/dir2 ...
> That will do the job.
>
> georg


Oeps...is it that easy...Sorry! I did look at the man pages, but overlooked
that option somehow. My apologies for that.

Is it also possible to read the directories to be backupped from a textfile?
Any good pages about the (im)possibilities of tar backup to tape, outside
the tar manpage?

What other possibilities/tools to backup to tape are there, besides tar and
dump/restore?

Thanks again!

-Dimitry


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-16-2008, 04:53 AM
Dekkers Intermediair
 
Posts: n/a
Default Re: tar backup to tape question (bacula)

See my previous reply to the group, where I asked for possible backup
solutions.

One I found is: http://www.bacula.org/index.html.

Tested on FreeBSD, not ported to OpenBSD ... yet (or at least not reported
on the site).

Has anyone out there experience with/a port of bacula on/for OpenBSD?

Thanks again!

-Dimitry


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-16-2008, 04:53 AM
zager@remove-host.idapps.com
 
Posts: n/a
Default Re: tar backup to tape question

Dekkers Intermediair <ds@nospam.d-i.nl> wrote:

>> Try to run
>> #tar -cf /dev/rst0 /home/dir1 /home/dir2 ...
>> That will do the job.

....
> What other possibilities/tools to backup to tape are there, besides tar and
> dump/restore?


Another option is to combine the mt command with tar or dump/restore.
Among other things, mt allows you to write EOF values to the tape, and
to seek forward and backward on the tape for EOFs. That lets you put
more than one tar or dump on the same tape.

For more details see
# man mt

- Eric
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-16-2008, 04:54 AM
MK
 
Posts: n/a
Default Re: tar backup to tape question

Dekkers Intermediair wrote:
> Is it also possible to read the directories to be backupped from a textfile?


'tar cvf archive_name -I textfile <other_files_to_archive ...>'

As indicated in 'man tar'.

MK

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-16-2008, 04:54 AM
Dekkers Intermediair
 
Posts: n/a
Default Re: tar backup to tape question

I still have a lot to learn...


....and one of them is how to read...

My apologies.

-Dimitry

"MK" <mkhomo@ostecs.com> schreef in bericht
news:bof6kh024cn@enews4.newsguy.com...
> Dekkers Intermediair wrote:
> > Is it also possible to read the directories to be backupped from a

textfile?
>
> 'tar cvf archive_name -I textfile <other_files_to_archive ...>'
>
> As indicated in 'man tar'.
>
> MK
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-16-2008, 04:56 AM
clvrmnky
 
Posts: n/a
Default Re: tar backup to tape question (bacula)

Dekkers Intermediair wrote:

> See my previous reply to the group, where I asked for possible backup
> solutions.
>
> One I found is: http://www.bacula.org/index.html.
>
> Tested on FreeBSD, not ported to OpenBSD ... yet (or at least not reported
> on the site).
>
> Has anyone out there experience with/a port of bacula on/for OpenBSD?
>

Well, it builds cleanly on OBSD 3.1, but I haven't tested it. This is
in reasonable alignment with http://www.bacula.org/systems.html.

I've used ARCserveIT in the past, but I don't need such a thing at home,
so I can't give a fuller report on Bacula than that.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:51 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com