Solved

copy not taking place

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now