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
On Friday 07 October 2005 03:07 pm, 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
Use rsync?
On 2005-10-07 21:20 Bruce Marshall wrote:
On Friday 07 October 2005 03:07 pm, 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
Use rsync?
No can do. There's no rsync on the source machine. It's an extremely stripped down Linux that on top of all shit needs to be online 99% or so. Otherwise I could've hooked up a second disk, go to rescue boot and do a dd if=/dev/sda of=/dev/sdb.. -- Anders Norrbring Norrbring Consulting
I think you are using slightly the wrong util... scp I am not sure about...
but piping the dd over ssh is very possible. I can't remember the command
syntax or I would offer it. Just a few weeks ago did just this to drop an
image on a disk locally with no mount ability and the image file on a remote
machine. I used a ssh with remote execute of "cat ~/file.img" and took the
output tunneled over ssh to a local dd. look in the ssh man page about
remote execute... read on pipe in there and dd by default take stdio. Check
the man on dd of information on that...
With that and a google search I figured it out.. maybe a google on "piping
over ssh" will help also for possibly an example.
Luke Watson
On 10/7/05, Anders Norrbring
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
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
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
On 2005-10-07 21: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
Thanks Ron! (And to Luke who sent the same in priv. mail) This works perfectly fine! I guess I just have to read up on piping.. :) -- Anders Norrbring Norrbring Consulting
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
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?
I seem to recall you could also use ssh with tar, but I don't recall the command.
On Saturday 08 October 2005 22:22, James Knott wrote:
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?
I seem to recall you could also use ssh with tar, but I don't recall the command.
ssh 192.168.1.1 "cd /backup; tar -c * .??* -f - " | tar -C /backup -xvf - This command will copy the /backup directory from the local machine to 192.168.1.1 Ron
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
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
On Tuesday 11 October 2005 03:04, Susemail wrote:
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
Jerome, The hyphens after the gzip and cat commands signify that "standard in" should be utilized with these commands. In other words, both gzip and cat typically expect a filename to be provided to them as arguments. In this case I am utilizing both commands in the middle of a pipe "|" so I need to have these commands operate on a data stream rather then an actual file. "Standard In" just signifies the source of that data stream. The "" around the > is a bit of isolation for the ssh command. In this environment we are dealing with a single command string that operates commands on both the local and the remote server. In order to isolate commands to operate in the local server we need to notify the ssh command of that. Isolating the command in "" provides that notification. Building (and understanding) these type of single line equations really is an art form (and to me is one of the real beauties of command line tools). Ron
On Tuesday 11 October 2005 03:34, Ron Joffe wrote:
Building (and understanding) these type of single line equations really is an art form (and to me is one of the real beauties of command line tools).
Ron
Hi Ron, The explanation you just provided is wonderfully succinct and clear, and I happen to share your keen appreciation for the beauty of the tools, but I have this longstanding, nagging feeling that I'm never going to attain the high level of fluency and proficiency to which I aspire. I've been experimenting with, and eventually using almost daily, various flavors of *nix for years... since SCO Xenix (SVR4?) on my PC-AT compatible (286 clone) circa '87/'88... and much less frequently on the usual RISC based systems (e.g. Solaris, IRIX, AIX...) To this day, I *still* have to constantly refer to man and info and '--help' and Google to accomplish a lot of my work. Is there any other way, besides hiring on as a systems administrator in a large-ish heterogeneous production environment, to commit a complete and fluent and natural "speaking" of this language to memory? regards, - Carl PS: You can tell I like to throw slow, easy softballs when I'm first getting acquainted with someone! :-)
participants (7)
-
Anders Norrbring
-
Bruce Marshall
-
Carl Hartung
-
James Knott
-
Luke Watson III
-
Ron Joffe
-
Susemail