ssh

Michael Havens bmike1 at gmail.com
Sat Feb 18 22:10:21 MST 2012


Well, I gave up on doing the archive with fsarchiver and just did it with
ssh (more as am in the process of creating). So now I can play with the
crashed drive with reckless abandon and not worry about losing data. If the
archive doesn't fail at least. Sorry about not listening to you before ET.

On Fri, Feb 17, 2012 at 10:08 AM, Walter Mack <wmack at componentsw.com> wrote:

>  I never tried this, but what should work is this:
>
>
> tar --ignore-failed-read [/mnt/sda1] -czf - | ssh remoteuser at remote.system"tar -xzf - | <fsarchiver command>"
>
> You have to have the whole string that the remote shell is to execute into
> quotes, so it is important to OMIT the double quotes around the pipe
> characters.
>
> having a - as file name is interpreted to mean stdin or stdout (as
> appropriate). This is the key to avoiding these pesky temporarily files.
> tar will simply produce its output on stdout (locally), and consume the
> data from stdin (remotely).
>
>
> You might want to look into using rsync. That might be an easier (and
> probably better) solution for what you want to do.
>
>
>
>
>
> On 2/16/2012 11:42 PM, Michael Havens wrote:
>
> so wait a second.... could I put fsarchiver on the server and then:
>
> tar --ignore-failed-read [/mnt/sda1] -czf - | ssh remoteuser at remote.system"tar -xzf - "| "<fsarchiver command>"
>
> so the tar command will create a tarball and the the pipe will transfer
> the tarball to the server and extract it wich the second pipe will feed
> into fsarchiver. Is that correct? I have a question: what does the minus
> sign in front of the pipes represent?  Well... I know it represents the
> name of the tar ball but.... is it the name? Could I put anything in that
> place?
>
> and then Enriques command  (tar jcf - /path/to/backup|ssh user at otherbox'tar xf -') would compress a tarball and then create a non compressed
> archive on the server.
>
> You know... I wondered if I could use scp for this. Investigating the man
> page reveals that this is the program I want to use. The text of the
> command that I should issue I think would be (I want to do this from a
> third computer):
>
> scp -Cr user1 at host1:mnt/sda1 user2 at host2:desired/directory/file/name
>
> I don't know if I assigned a user1 or a host1 name. How can I find this
> out? If I didn't how would I assign one or change it to a more appropriate
> name?
>
> This is fun!
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>



-- 
:-)~MIKE~(-:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20120218/1e41e8e7/attachment.html>


More information about the PLUG-discuss mailing list