On Saturday 08 October 2005 21:53, Anders Norrbring wrote:
On 2005-10-09 00:37 Susemail wrote:
On Friday 07 October 2005 09:50, Ron Joffe wrote:
On Friday 07 October 2005 15:07, Anders Norrbring wrote:
I wonder if I in any way can use dd to copy from a local machine to a remote with scp?
The originating machine doesn't have support for any network file system at all, so I can't simply mount as usual..
I was thinking something in the way of
'dd if=thefile of=user@xx.xx.xx.xx'
I understand it's hardly as simple as that, so anyone out there with ideas? --
Anders Norrbring Norrbring Consulting
Something like:
dd if=/dev/Volume1/root | gzip -9 - | ssh 10.246.248.148 cat - ">" root.dd.gz
you could also replace the cat with a dd of=...
Ron
I would like to understand this command. Does' /root' mean the root directory? Is 'root.dd.gz' a compressed form of '/root'? What's the 'dd' for?
Thanks, Jerome
Hi Jerome,
It's not that hard if you use your "man" command.. :)
dd is a convert and copy command, if=infile, of=outfile, bs=blocksize
gzip and ssh should be known... (gzip can be left out for no compression)
The /root is the root directory, i.e. the root users home.
root.dd.gz if the compressed file that's created on the target machine.
--
Anders Norrbring Norrbring Consulting
Thanks Anders, I know in some sense this is a trivial question. To me this is a elegant statement and I wanted to make sure there are no uncertainties in my understanding of it. Sometimes man pages add as much uncertainty to my undertanding of a command as they subtract. I learn far better from the answers on this list then I do from the man pages. I've even learned how to understand the man pages better. The man pages for me are now a cloudy crystal ball instead of an opaque one thanks to the list. Looking at the statement now I realize I forgot to ask about the hyphens after 9 and cat and why the "" around '>'?:-) Keep up the good work,:-) Jerome