Backup svn

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with 'see [http://code.google.com/p/support/wiki/SubversionFAQ#How_do_I_download_my_Subversion_history? Google's Answer] for now')
 
Line 1: Line 1:
see [http://code.google.com/p/support/wiki/SubversionFAQ#How_do_I_download_my_Subversion_history? Google's Answer] for now
+
see [http://code.google.com/p/support/wiki/SubversionFAQ#How_do_I_download_my_Subversion_history? Google's Answer] for more
 +
<h2>To Setup</h2>
 +
<pre>
 +
$ svnadmin create <backup_path>
 +
$ cd <backup_path>
 +
$ echo -e "#\0041/bin/bash\nexit 0" > hooks/pre-revprop-change
 +
$ chmod +x hooks/pre-revprop-change
 +
$ svnsync init --username attie file://`pwd` http://<live_svn_path>
 +
Copied properties for revision 0.
 +
</pre>
 +
<h2>To Sync</h2>
 +
<pre>
 +
$ svnsync sync --username attie file://<full_backup_path>
 +
</pre>

Revision as of 14:37, 2 September 2010

see Google's Answer for more

To Setup

$ svnadmin create <backup_path>
$ cd <backup_path>
$ echo -e "#\0041/bin/bash\nexit 0" > hooks/pre-revprop-change
$ chmod +x hooks/pre-revprop-change
$ svnsync init --username attie file://`pwd` http://<live_svn_path>
Copied properties for revision 0.

To Sync

$ svnsync sync --username attie file://<full_backup_path>
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox