How to transfer files to server via SVN

/ Published in: Bash
Save to your folder(s)

Because our server is a virtual machine inside a virtual machine (it's like inception), we can't transfer file using FTP. You need using SVN repository as a bridge to do so.

Follow [Exercise 3]( "Exercise 3"), create a folder in your own computer, checkout from your *INDIVIDUAL* repository (the url we used for exercise 3 is for group project, use this one instead)


Put some file in the folder and commit, your files will be upload to the repository.

Now you can download these files from repository to the server.

Copy this code and paste it in your HTML
  1. #login to our server,
  3. ssh userid@mx3
  5. #make a new folder in your home directory to checkout from you individual repository
  7. mkdir myfolder
  9. #checkout from repository
  11. svn co myfolder
  13. #now all your files should have been downloaded to myfolder
  14. #move the file you need to public_html folder, so it will be visible from web
  16. mv myfolder/ /home/userid/public_html/
  18. #now you should able to view your file from

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.