In need of a bit of shellish magic

Tom Buskey tom at buskey.name
Fri Jun 2 17:43:01 EDT 2006


On 6/2/06, Ted Roche <tedroche at tedroche.com> wrote:
>
>
> For extra points, what's the magic to pipe it through tar? I tried >
> and | followed by tar -czf svndump20060602.tgz, but just haven't
> grokked piping yet, apparently.



Umm, something like

svnadmin dump /path/to/repos | tar cf - | gzip -c | ssh remote 'cd
/backup/dir; cat - > scndump-`date +%Y%m%d`.tar.gz'

I'm assuming svnadm dump outputs to stdout.  To tar, cf - means create file
on stdout
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20060602/81aab7e2/attachment.html


More information about the gnhlug-discuss mailing list