Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to move files from svn folder to production server

I have a website written in PHP under source control (SVN). I would like to move at once all my files from the website directory to production server.

The problem is that in this folder there are folders of SVN (.svn). The second problem is that i do not want to put on the server only files under source control, but also other in this folder (images, css, and so on).

Could you please tell me how to do this? It would be nice if it would be repeatable - that so I would have only one command to execute.

And if there would be any possibility to optimize uploading (not uploading not changed files) to make whole process of going production faster would be nice too.

EDIT:

My development environment is Eclipse PDT and favorite FTP filezilla.

like image 795
Tom Smykowski Avatar asked Mar 19 '09 10:03

Tom Smykowski


People also ask

Can I move SVN folder to another location?

Moving files and folders select the files or directories you want to move. right drag them to the new location inside the working copy. release the right mouse button. in the popup menu select Context Menu → SVN Move versioned files here.

How copy folder from SVN to local?

Use the standard Windows Copy or Cut to copy one or more versioned items to the clipboard. If the clipboard contains such versioned items, you can then use TortoiseSVN → Paste (note: not the standard Windows Paste) to copy or move those items to the new working copy location.

How do I move my TortoiseSVN repository?

If you are using TortoiseSVN (and I'm sure there's a command line tool for this as well, but I'm using Tortoise), you can simply right-click on your existing working copy folder and select TortoiseSVN –> Relocate. In the dialog that comes up, enter the new location of the repository, and click OK.


1 Answers

You can use the export function of subversion, this will allow you to export all files under version control, but also all files NOT under control. Both methods will skip the .svn folders.

You didn't mention your client, but Tortoise has the 'export unversioned files too' option.

See here for commandline syntax

like image 172
edosoft Avatar answered Nov 09 '22 13:11

edosoft