Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8192435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:10:50+00:00 2026-06-07T04:10:50+00:00

I did some homework and while I can answer all below questions about exporting

  • 0

I did some homework and while I can answer all below questions about exporting SVN repo on Windows (using VisualSVN server), I’m completely lost on Linux as I’m total newbie there.

I want to use SVN’s export feature on Linux, to have website updated each time I commit a repository. But there are some problems with that.

I’ve read out these three:
How to use "svn export" command to get a single file from the repository?
http://www.duchnik.com/tutorials/2011/07/02/svn-command-reference
http://www.picksourcecode.com/ps/ct/161055.php

and figured out following command to be used inside post-commit hook:

svn export --force svn://localhost/repository_name /share/Web/projects/website

Questions:

  1. Anyone has any idea, why it does not work? Changes are commited to repository, but operations ends up with “post-commit hook failed (exit code 255) with no output”. And post-commit hook seems to be not fired, as destination website is not updated. I’ve checked (or even doublechecked) that command itself works like a charm (when called from command-line). It only fails inside post-commit hook. I’ve tried to add “exit 0” at the end of this file. And of course it is executable. No luck. Still, after many attempts, the same error code.

  2. Why this operation works, even though I haven’t provided username and password as params? The “passwd” file inside repository is properly set and any operation from external client requires providing username and password or else fails. Some bug in SVN?

  3. Is there any way to limit files exported to destination to only changed / added / deleted, not to export whole repository after each commit?

  4. Is there anyway to do exactly the same (export), but to an external server, over FTP, instead of my QNAP’s local path?

For points three and four I tried to use svn2web tool form SourceForge, but this is rather bad idea and it is not working. It uses pre-commit hook instead of post-commit, which means that any error in it will block developers from commiting their work (in my case — post-commit — changes are commited, only not propagated to destination). Their pre-commit hook fails on my server (the same error message as in point one above) and their approach (solution) of adding “svn2web” property to folder properties maybe works for pure Linux Subversion clients but seems to be failling completely when using TortoiseSVN on Windows as SVN client.

I’m wondering, if solution for problem no 1 (and 2-3 and maybe 4) wouldn’t be to setup a Local Working Copy inside /share/Web/projects/website and use CRON for perodic updates of this repository? This would always “export” only actual changes and would probably fail without poper login and password. But this seems to be reinventing wheel or forcing to open already open doors.

Thank you in advance for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:10:52+00:00Added an answer on June 7, 2026 at 4:10 am

    Some answers in brief:

    1. I would shot that you’re running this command as different user than SVN daemon (svnserve) uses to run hooks. That other user (used by SVN) problably hasn’t got all the rights required to run export.

    2. Unfortunately, I have no idea. Must be something with your installation of SVN. Of course, this shouldn’t happen at all. If repository is properly secured and requires login + password, everyone has to provide it corectly, even for export operation.

    3. You need and extended script, preferebly run as post-commit hook, that will compare current (last one – HEAD) revision with provious one and will export only changed files. This isn’t an easy task. Look around in the Internet for ready solutions, before you try to discover wheel again! :]

    4. No directly with extract command of SVN? The easiest way, that comes my mind is to extract to a local path, pack it, send it via FTP and unpack it at destination. Or send directly, file-by-file, if you don’t have access to shell at destination, to unpack an archive.

    Hope, these will help? :]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I did some tests about IList<T>.Aggregate() , but the answer does not make sense
I did some reading about Gearman and i am wondering if it can be
Did some searches here & on the 'net and haven't found a good answer
Did some googling and couldn't find a clear answer on this. My assumption is
I did some all day learning and I figured out how to add rows
I did some research but all I could find was syncing data core with
I did some research but couldn't find the answer I was looking for so
I did some googling to try to answer this question but even after that
Needing help for some homework. I hope someone can help me out as I
I did some tests a while ago and never figured out how to make

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.