LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 02:37 AM   #1
gaurvrishi
Member
 
Registered: Apr 2012
Posts: 62

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, 02:40 AM   #2
xuta
LQ Newbie
 
Registered: Apr 2011
Location: Hanoi, Vietnam
Distribution: Ubuntu, OpenSuSE, Debian, Gentoo
Posts: 24

Rep: Reputation: Disabled
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, 02:52 AM   #3
gaurvrishi
Member
 
Registered: Apr 2012
Posts: 62

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, 03:13 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
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



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 01:52 AM
I need help with scp kyros Linux - Newbie 19 12-31-2011 11:43 AM
[SOLVED] ssh scp key not working to ssh/scp without password anon091 Linux - Newbie 9 08-22-2011 04:28 PM
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-28-2008 11:41 PM
How can I use scp Jzarecta Linux - Networking 6 04-15-2006 02:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:12 PM.

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
Open Source Consulting | Domain Registration