1752806 Members
5721 Online
108789 Solutions
New Discussion юеВ

RCP

 
Elizangela_1
Frequent Advisor

RCP

Hi,

How Can I use rcp for copy specific extensions of archives.

Ex:
rcp -p maqv2600:/home/gan/, but i need only extensions:dbf dbt prg ndx

Thanks,
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: RCP

yes

rcp -p myserver/*.dbf targethost://backups

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Elizangela_1
Frequent Advisor

Re: RCP

I don't understand targethost://backup.

I will do it?

rcp -p maqv2600:/home/gan/*.dbf maqn4000/home

?

Where maqv2600 is the machine where my archives are and maqn4000 the machine where the archives go?

Thank's
Sridhar Bhaskarla
Honored Contributor

Re: RCP

Hi,

rcp behaves like cp. The second argument is the destination.

I would consider multiple rcp sessions to copy files of these extensions.

rcp -p maqv2600:/home/gan/*.dbf target:/home/gan
rcp -p maqv2600:/home/gan/*.prg target:/home/gan

This will dump them into /home/gan directory on the host 'target'.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: RCP

rcp -p maqv2600:/home/gan/*.dbf maqn4000/home

should be:

rcp -p maqv2600:/home/gan/*.dbf maqn4000://home

You don't need the maqv2600: in the first part of the command if its being run from that machine(hostname maqv2600).

Did I help or further muddy the waters.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com