1836636 Members
1650 Online
110102 Solutions
New Discussion

copying file

 
haeman
Frequent Advisor

copying file

I have a server ( with hardware raid 5 ) that have some application and unix-like system are running in it , I would like to copy ( like diskcopy c:\ d:\ in windows ) all files including all O/S , files , application from this server to another host , can advise if I do not unplug the harddisk , how can I do such low level system copying ? thx
3 REPLIES 3
Laurent Menase
Honored Contributor

Re: copying file

you mean you want to duplicate your system on an other one?
if hpux use ignite.

else it is not the right forum.

else with tar or cpio or scp.

something like

cd /; tar cf - . | ssh remotesystem "cd /backupdir ; tar xf - "

or
cd /; tar cf - . | gzip |rexec remotesystem "cd /backupdir ; gunzip |tar xf - "

or
or the same with cpio

cd / ; find . -prune | cpio -o | gzip | rexec remotesystem " cd /backupdir ; gunzip | cpio -idxm"

cpio copy also the device files while tar don't.
SKR_1
Trusted Contributor

Re: copying file

I think you have choosen wrong firm.

In Unix you can use

cp -pr source destination

Thanks

SKR
Gokul Chandola
Trusted Contributor

Re: copying file

Hi
Code: ( text )

1.scp -r path/to/folder/ user@targethost:/target/path

Bothlines are continue with space..

Regards,
Gokul Chandola
There is always some scope for improvment.