SVNForum.org Forum Index FAQFAQ SearchSearch MemberlistMemberlist RegisterRegister Log inLog in

Download Subversion 1.6.12: Free Subversion TrainingWindows - Free Subversion TrainingCentOS 5 - Free Subversion TrainingRedhat Enterprise Linux 5 - Free Subversion TrainingUbuntu 9/10.04 - Free Subversion TrainingDebian Lenny (5)

Free Subversion Training: Free Subversion TrainingUsing the Subversion Diff Command Free Subversion TrainingSubversion Administration Best Practices Free Subversion TrainingAll About Subversion Hook Scripts
 
svn export command help needed

 
Post new topic   Reply to topic    SVNForum.org Forum Index -> Linux, Unix and *nix
View previous topic :: View next topic  
Author Message
arobd



Joined: 09 Aug 2008
Posts: 4
Location: Dhaka, Bangladesh

PostPosted: Sat Aug 09, 2008 10:41 pm    Post subject: svn export command help needed Reply with quote

I like to export a project to a directory from the repo.
For example:
I have a project named abc. Repository URL is http://SomeIPAddress/repos/abc and path is /var/www/svn/abc
Now I like to export the head version to /var/www/vhosts/something.com/httpdocs/

What is the svn command?
_________________
Arafat Rahman
http://arafatbd.net
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
andyl



Joined: 03 Nov 2005
Posts: 4881

PostPosted: Sat Aug 09, 2008 10:58 pm    Post subject: Reply with quote

svn export <URL> <destination>

See also svn help export
Back to top
View user's profile Send private message
arobd



Joined: 09 Aug 2008
Posts: 4
Location: Dhaka, Bangladesh

PostPosted: Sat Aug 09, 2008 11:59 pm    Post subject: Reply with quote

andyl wrote:
svn export <URL> <destination>

See also svn help export

I tried this command
Code:
svn export http://SomeIPAddress/repos/abc /var/www/vhosts/something.com/httpdocs/


But not working, getting these error messages.
Code:
svn: PROPFIND request failed on '/repos/abc'
svn: PROPFIND of '/repos/abc': could not connect to server (http://SomeIPAddress)

_________________
Arafat Rahman
http://arafatbd.net
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
JNiven



Joined: 17 Feb 2008
Posts: 1288
Location: Glasgow, Scotland

PostPosted: Sun Aug 10, 2008 12:23 am    Post subject: Reply with quote

Hi Arafat

Can you "ping" the remote machine from the client machine? [1]

Do other SVN commands work, e.g.
Code:
svn ls http://SomeIPAddress/repos/abc
[2]

If SSL is enabled on the remote machine's Apache, are you able to export if you use https:// instead of http://? e.g.
[codesvn export https://SomeIPAddress/repos/abc /var/www/vhosts/something.com/httpdocs/[/code] [3]

If 1, then it's not an SVN issue, it's an issue with your network - see you network admin.
If 2 (unlikely - export is read-only), then it's an issue with "svn export" - does "svn checkout" work?
If 3, then it's an issue with your network - probably with a router or proxy between you and the remote machine.

Cheers
John
_________________
John Niven
Back to top
View user's profile Send private message
arobd



Joined: 09 Aug 2008
Posts: 4
Location: Dhaka, Bangladesh

PostPosted: Sun Aug 10, 2008 12:53 am    Post subject: Reply with quote

Hi John,
Code:
svn ls http://SomeIPAddress/repos/abc

this command is not working.
Actually I am working in my server using SSH where SVN is installed. Now I want to export the repo to a folder in same server.
I can connect from my local PC using TortoiseSVN for Windows and working fine.
_________________
Arafat Rahman
http://arafatbd.net
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
arobd



Joined: 09 Aug 2008
Posts: 4
Location: Dhaka, Bangladesh

PostPosted: Sun Aug 10, 2008 1:00 am    Post subject: Reply with quote

Wow! Very Happy
I have got the solution. This command working fine.
Code:
svn export http://127.0.0.1/repos/abc /var/www/vhosts/something.com/httpdocs/ --username user --password mypass --force

Thanks John Niven and andyl.
_________________
Arafat Rahman
http://arafatbd.net


Last edited by arobd on Sun Aug 10, 2008 1:03 am; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
JNiven



Joined: 17 Feb 2008
Posts: 1288
Location: Glasgow, Scotland

PostPosted: Sun Aug 10, 2008 1:02 am    Post subject: Reply with quote

Hi Arafat

It's been a while since I last used SSH, but I seem to remember a similar issue. If you replace the IP address with "localhost" does it work? (I can't remember why I think it may make a difference, but give it a go). If that doesn't work I'd suggest using the file:// protocol instead of http:// while you're using SSH.

Cheers
John
_________________
John Niven
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Post new topic   Reply to topic    SVNForum.org Forum Index -> Linux, Unix and *nix All times are GMT - 4 Hours
Page 1 of 1
Display posts from previous:   
Google
 
Web SVNForum.org