Solved

copy not taking place

Posted on 2013-05-27
4
228 Views
Last Modified: 2013-06-04
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]$
0
Comment
Question by:walkerdba
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 16

Expert Comment

by:Swadhin Ray
ID: 39200269
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
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39201058
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
0
 
LVL 21

Accepted Solution

by:
Mazdajai earned 500 total points
ID: 39201509
Asterisk can be omitted if recursive option is added.

cp -rv /home/oracle/Desktop/backup /u01/app/oracle/oradate/orcl

Open in new window

0
 

Author Closing Comment

by:walkerdba
ID: 39219936
yes
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question