tar and dd

tar and dd

Post by Michael A. Firesto » Thu, 03 Feb 1994 07:44:30



I am working on an archiving utility using a combination of tar and dd
to perform backups over the LAN and between Sun SPARCstations and
SGIs.  I currently use a command line something like this :
  tar cvfb - 20b <files> | /usr/bsd/rsh dd of=/dev/rst0 obs=20b
My boss told me to watch out for the "obs=20b" statement.  I have
checked the manpages and found no warning statements.  What have I
missed?
--
Mik Firestone

 
 
 

tar and dd

Post by Part » Thu, 03 Feb 1994 21:36:58



Quote:> I am working on an archiving utility using a combination of tar and dd
> to perform backups over the LAN and between Sun SPARCstations and
> SGIs.  I currently use a command line something like this :
>   tar cvfb - 20b <files> | /usr/bsd/rsh dd of=/dev/rst0 obs=20b
> My boss told me to watch out for the "obs=20b" statement.  I have
> checked the manpages and found no warning statements.  What have I
> missed?

Just check that b means the same on both machines (might be 512 or 1024).

--

EDV-Zentrum, Universitaet fuer Bodenkultur
Nussdorfer Laende 11                      Please correct me if I'm wrong!
A-1190 Wien, Austria (Europe)             Make love, not flame wars.  :-)

 
 
 

1. Tar and rsh/dd

I know that I can copy directories to and from remote machines by
tarring them up, sending them through a pipe, and having dd(1)
(executed via rsh(1) on the remote machine) read them on the other
side, putting them in whatever directory I specify with the 'of'
option.  However, all such extracted files contain a bunch of crap at
the top of them, related, I'd assume, to block sizes and other things
that I can't get through my thick skull.

Specifically, something like this:

  example% tar cf - blah | rsh rmachine 'dd of=$home/path/to/files'


characters at the top along with details that look like information
that tar bundles along with them.

Any ideas how to get around these things?  I've tried all the examples
from pp. 357-359 of Unix Power Tools, I've read the tar(1) and dd(1)
man pages, and have read the comp.unix.questions FAQ, but to no avail.

Email appreciated, but not necessary.

Thanks,
Laird

--
laird j. nelson                                           (617) 252-5147
at&t new media services                   You Will.       25 first street
http://www.amherst.edu/~ljnelson/                         cambridge, ma 02141
    I do not speak for my employer, and my employer does not speak for me.

2. ATI MACH 64 - a pain in the a..

3. Write with tar and read with dd?

4. net boot for installation Solaris 9 fails

5. rsh remote dd if=/dev/rmt/0 bs=1024k | tar -xvf -

6. What do the symbols $@, $^, $< mean and where is 'mtrace'?

7. OSR5 Problem with tar & dd

8. Dormant user accounts

9. Peculiar tar and dd behavior

10. Reading tar tape with dd

11. dd/cpio/tar Truncate Large Files

12. "tar | dd " question

13. where can I find source for 'dd' and 'tar'??