> Luke,
>
> Nope, this was the exact thing we were trying to get away
> from. Suppose I
> don't have space to store that file on the host box. We're
> doing it in
> stages now and I really want to get away from that since it
> increases disk
> activity on the host box during a full backup. C
> -Original Message-
> From: tyohn [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 17, 2004 1:00 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Writing output of a Shell command directly to a file
>
> Luke,
>
Sorry guys... didn't mean to top post, if I do
Sent: Wednesday, March 17, 2004 12:48 PM
To: tyohn; [EMAIL PROTECTED]
Subject: RE: Writing output of a Shell command directly to a file
> @in = ssh("1.1.1.1", "tar cf - /home/$user | gzip")
> open(TEMP, ">/tmp/$user.tar.gz") or die "Blargh!";
> pri
> @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 ma