LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-19-2013, 03:37 AM   #1
gaurvrishi
Member
 
Registered: Apr 2012
Posts: 51

Rep: Reputation: Disabled
Smile SCP


I am not able to do the SCP when there is timestamps in file name. Getting below error.

scp power-2013-03-10-Sunday-08\:07\:01.dmp.gz root@172.16.24.76:/tmp
ssh: power-2013-03-10-Sunday-08: Name or service not known


But if i remove the timestamps then its working fine.
 
Old 03-19-2013, 03:40 AM   #2
xuta
LQ Newbie
 
Registered: Apr 2011
Location: Hanoi, Vietnam
Distribution: Ubuntu, OpenSuSE, Debian, Gentoo
Posts: 24

Rep: Reputation: 0
Use
scp 'power-2013-03-10-Sunday-08:07:01.dmp.gz' root@172.16.24.76:/tmp
or
scp power-2013-03-10-Sunday-08* root@172.16.24.76:/tmp
 
Old 03-19-2013, 03:52 AM   #3
gaurvrishi
Member
 
Registered: Apr 2012
Posts: 51

Original Poster
Rep: Reputation: Disabled
Smile

It was working with with '*' but not with first one. However, i am trying rsync with delete option but getting the same error

rsync --remove-source-files 'power-2013-03-10-Sunday-08*' root@172.16.24.76:/tmp
rsync: --remove-source-files: unknown option
rsync error: syntax or usage error (code 1) at main.c(1231) [client=2.6.8]



but same is working with this

rsync -av 'power-2013-03-10-Sunday-08*' root@172.16.24.76:/tmp
root@172.16.24.76's password:
 
Old 03-19-2013, 04:13 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
that is another problem, probably you have an outdated rsync version, it does not support that option. Try to update it to version 3.
 
  


Reply

Tags
scp


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 6.3 host+guest: try scp to guest: scp cmd not found. ssh ok chrism01 Linux - Virtualization and Cloud 3 08-24-2012 02:52 AM
I need help with scp kyros Linux - Newbie 19 12-31-2011 12:43 PM
[SOLVED] ssh scp key not working to ssh/scp without password rjo98 Linux - Newbie 9 08-22-2011 05:28 PM
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-29-2008 12:41 AM
How can I use scp Jzarecta Linux - Networking 6 04-15-2006 03:52 AM


All times are GMT -5. The time now is 11:43 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration