Link to home
Start Free TrialLog in
Avatar of walkerdba
walkerdba

asked on

copy not taking place

I have backup in /home/oracle/Desktop/backup location

my current directory is /u01/app/oracle/oradate/orcl  how will I copy the contents of backup folder to the current directory ie the above one..

shows error like this


[oracle@term1 orcl]$ cp /home/oracle/Desktop/backup/
cp: missing destination file operand after `/home/oracle/Desktop/backup/'
Try `cp --help' for more information.
[oracle@term1 orcl]$ cp home/oracle/Desktop/backup/
cp: missing destination file operand after `home/oracle/Desktop/backup/'
Try `cp --help' for more information.
[oracle@term1 orcl]$
Avatar of Swadhin Ray
Swadhin Ray
Flag of United States of America image

You need to pass the file name and the destination path too while doing the copy.

Please refer this link for more information:

http://www.tuxfiles.org/linuxhelp/fileman.html
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

As noted in the link above, cp takes two parameters:  cp FROM TO.

Check out the man page:
http://linux.die.net/man/1/cp

At a minimum you need:
cp /home/oracle/Desktop/backup/* /u01/app/oracle/oradate/orcl

I figure you will also want recursive:
cp -r /home/oracle/Desktop/backup/* /u01/app/oracle/oradate/orcl
ASKER CERTIFIED SOLUTION
Avatar of Mazdajai
Mazdajai
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of walkerdba

ASKER

yes