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
Solved

copy not taking place

Posted on 2013-05-27
4
218 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
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 76

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

The purpose of this article is to demonstrate how we can use conditional statements using Python.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
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 video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

860 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