Subversion notes

From Simson Garfinkel
Revision as of 11:17, 28 January 2013 by Simson (talk | contribs) (→‎File Activities)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

File Activities

Make your PDF's binary:

 svn propset svn:mime-type application/pdf *.pdf

Enable the subversion execute bit (so that scripts get checked out with their execute bit set):

 svn ps svn:executable yes filename

Client Activities

If the URL of the repository changed, use this:

  svn switch --relocate http://old/url http://new/url

Directory Activities

Repository Activities

Verify data served in a repository:

  svnadmin verify REPOS_PATH

Backup a repository:

  svnadmin dump REPOS_PATH | gzip -9 > svn.dump.gz

Restore a backup:

  svnadmin create REPOS_PATH
  gunzip -c svn.dump.gz | svnadmin load REPOS_PATH