scp options for recursive copying | Unix Linux Forums | Linux

  Go Back    


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

scp options for recursive copying

Linux


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-03-2003
mcrouch_2003 mcrouch_2003 is offline
Registered User
 
Join Date: Dec 2003
Last Activity: 3 January 2004, 5:12 PM EST
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
scp options for recursive copying

Hello:

I am trying to do a recursive scp copy and found a command embedded in a java app that is attempting to do just that. The command is "scp -d -t -r /mnt/mydir/".

When I try this from the shell, it is sending back " scp: /mnt/mydir/: No such file or directory".

A couple of questions here:

1) what are the -d and -t options? There is no mention of these in the man pages for scp.

2) Given the above command, how does scp know where to send the files, to what remote server?

Please help if you have any idea.
I basically just want to start at a given directory heirarchy and traverse it to the point where there are only files, and scp all of those files to a given remote box.

Thanks in advance,

MC
Sponsored Links
    #2  
Old 12-08-2003
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
 
Join Date: Oct 2000
Last Activity: 7 May 2009, 12:22 PM EDT
Location: Sacramento, CA
Posts: 909
Thanks: 0
Thanked 4 Times in 4 Posts
Re: scp options for recursive copying

Quote:
Originally posted by mcrouch_2003
Hello:

I am trying to do a recursive scp copy and found a command embedded in a java app that is attempting to do just that. The command is "scp -d -t -r /mnt/mydir/".

1) what are the -d and -t options? There is no mention of these in the man pages for scp.
Nor in mine.

Quote:

2) Given the above command, how does scp know where to send the files, to what remote server?
It doesn't. The proper syntax is:
scp [[user@]host1:]file1 [...] [user@]host2:]file2

for example:

scp -r mydir user@otherhost:/tmp
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Kernel boot options removed by fault, no boot options cdt Ubuntu 3 09-09-2011 12:27 AM
Recursive FTP -- here at last. Perderabo Shell Programming and Scripting 52 03-25-2009 12:15 PM
Recursive FTP aslamg UNIX for Dummies Questions & Answers 1 03-08-2001 03:27 AM



All times are GMT -4. The time now is 05:26 AM.