Category: 其他

[QA] How to start svn server (svnserve) on startup as daemon in MacOS

save org.apache.svnserve.plist to /System/Library/LaunchDaemons

<plist version="1.0">
   <dict>
      <key>Disabled</key>
      <true/>
      <key>Label</key>
      <string>org.apache.svnserve</string>
      <key>ProgramArguments</key>
      <array>
         <string>/usr/bin/svnserve</string>
         <string>--inetd</string>
         <string>--root=/path_to_your_repository</string>
      </array>
      <key>Sockets</key>
      <dict>
         <key>Listeners</key>
         <array>
            <dict>
               <key>SockServiceName</key>
               <string>svn</string>
               <key>Bonjour</key>
               <true/>
            </dict>
         </array>
      </dict>
      <key>UserName</key>
      <string>_www</string>
      <key>inetdCompatibility</key>
      <dict>
         <key>Wait</key>
         <false/>
      </dict>
   </dict>
</plist>
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.svnserve.plist
sudo launchctl start org.apache.svnserve
Tags : ,

[QA] How to backup svn server

svnadmin dump /path/repositoryfolder > 2013-05-14-SVNBackup.svn_dump
svnadmin create /path/repositoryname
svnadmin load /path/repositoryfolder < 2013-05-14-SVNBackup.svn_dump
Tags :