> @in = ssh("1.1.1.1", "tar cf - /home/$user | gzip")
> open(TEMP, ">/tmp/$user.tar.gz") or die "Blargh!";
> print TEMP @in;
> close(TEMP);

Can you do this in stages?

Create tar file:
ssh("1.1.1.1", "tar cf - /home/$user | gzip -c | dd of=/tmp/foo.tgz")

Use ftp or scp to get it to your backup machine.

Delete /tmp/foo.tgz on original machine.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to