Dinesh Singh wrote: > Dear Mithun > > Sorry for that blooper , actually what I meant was RedHat 5.1 > > The reason why I want the same is that my company runs a website > on a linux server running RedHat 5.1 and i am supposed to create a > mirror of the same on a local box in my office. I actually thought that
---------------- ssh root@<remote server ip> '(cd / && tar czpf - --exclude "./proc" . ) | tar xzpf - ---------------- ssh root@<remote server ip> : connect to remote server as root cd / : [self explanatory I hope] tar czpf - --exclude "./proc" . : tar everything from the current directory excluding ./proc and maintaining file permissions and dump the output after compression to the standard output tar xzpf - : decompress and extract maintaining the permissions while reading from the standard input. This seems to work for me - hopefully it will help you too. Ofcourse you will have to change the hardware and network info wherever it differs. Mithun ================================================ To un/subscribe, send email to [EMAIL PROTECTED] with 'un/subscribe' in subject header Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org =================================================