A python script for backup repositories to custom git server
- License: Apache-2.0
- Documentation: https://treasure-guarder.readthedocs.io.
- Prepare your working directory, for example : /opt/tg-workspace
treasure-guarder will create a cache directory .tgwork under /opt/tg-workspace
Create a configure file treasure-guarder.yml under /opt/tg-workspace just like:
repos: treasure-guarder: from: https://github.com/starofrainnight/treasure-guarder.git to: ssh://git@localhost/github/starofrainnight/treasure-guarder.git abhealer: from: https://github.com/starofrainnight/abhealer.git to: ssh://git@localhost/github/starofrainnight/abhealer.git
- Then run this command in your console under directiry /opt/tg-workspace
treasure-guarder ./treasure-guarder.yml
NOTICE:
- Ensure latest git command exists in your shell environment
- Ensure you have rights to access to the source repository and the destination repository
- Ensure there won't prompt password when pushing to destination repository
- Normally, the cache directory .tgwork will created under current working directory
This package was created with Cookiecutter and the PyPackageTemplate project template.