LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-27-2007, 05:11 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 73
Omitting Directory Error


I am attempting to back up my data from my "USBDRIVE" which is /dev/sdc1.

I have a directory called "backup" on my Desktop and when I try to "cp", I get the following error and am not sure how to resolve.

Code:
cwilliams@tank:/media/USBDRIVE$ ls -l
total 192
-rwx------  1 cwilliams cwilliams    67 2007-02-01 18:08 apt.txt
drwx------  6 cwilliams cwilliams 32768 2007-03-15 19:06 cwilliams
drwx------  7 cwilliams cwilliams 32768 2007-03-15 18:43 ghost
-rwx------  1 cwilliams cwilliams  2511 2007-03-05 13:03 linux_commands.txt
drwx------ 41 cwilliams cwilliams 32768 2007-03-06 15:00 music
-rwx------  1 cwilliams cwilliams   235 2007-02-09 16:37 mysql.txt
cwilliams@tank:/media/USBDRIVE$ cp /media/USBDRIVE/* /home/cwilliams/Desktop/backup/
cp: omitting directory `/media/USBDRIVE/cwilliams'
cp: omitting directory `/media/USBDRIVE/ghost'
cp: omitting directory `/media/USBDRIVE/music'
 
Old 03-27-2007, 05:14 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Perhaps you need to specify the -r. Usually that error is indicating you're trying to copy over a directory that already exists in the destination.
 
Old 03-27-2007, 05:14 PM   #3
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 30
I think you need to use the recursive switch with cp.
 
Old 03-27-2007, 05:21 PM   #4
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 73
It appears you get the error if the directory you're trying to copy does not exist in the target directory as well. Anyways, the "-r" tag seemed to do the trick. Sorry I did not think of that and thanks for your help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
omitting icons from PLACES or SYSTEM menus of Fedora 6 guy_ripper Linux - Software 0 01-04-2007 08:52 AM
omitting space in shell script Fond_of_Opensource Linux - Newbie 10 11-18-2006 10:18 AM
"WARNING: Circular directory structure" error when deleting directory pistonbrew Linux - Software 5 02-03-2005 07:05 AM
cp: omitting error jsolanky Linux - Software 10 11-28-2004 10:09 AM
formating console output (omitting parts you do not want) bpk Linux - Newbie 6 06-10-2004 08:32 PM


All times are GMT -5. The time now is 11:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration