# svn_revision_compare **Repository Path**: donhui/svn_revision_compare ## Basic Information - **Project Name**: svn_revision_compare - **Description**: Consistency check between svn server and backup severs. - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-10 - **Last Updated**: 2024-06-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Svn revision compare Consistency check between svn server and backup severs. Compare the revisions between svn server and backup severs, and send email notification. # PreRequire tools - Python2.7 or Python3 - SVN cli # About svn auth SVN username and password should be added to svn cli option for authentication. In addition,add 2 parameters to `~/.subversion/servers` file as follows: ``` store-passwords = yes store-plaintext-passwords = yes ``` # How to run ## Run task on local machine 1. Modify configuration parameters in `settings.py` 2. Execute script: `python svn_revision_compare.py` ## Run task with docker 1. Modify configuration parameters in `settings.py` 2. Build docker image: `docker build -t svn_revison_compare:v1 .` 3. Run container: `docker run -d svn_revison_compare:v1` # Email demo screenshot ![Email demo screenshot](./images/email_demo_screenshot.png) # Related Resources Blogs: - [SVN 主备一致性校验,可以这样做!](https://my.oschina.net/donhui/blog/5306605)