A python script for backup repositories to custom git server
Project description
treasure-guarder
A python script for backup repositories to custom git server
License: Apache-2.0
Documentation: https://treasure-guarder.readthedocs.io.
Usage
- 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
Credits
This package was created with Cookiecutter and the PyPackageTemplate project template.
History
0.0.1 (2019-08-03)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file treasure-guarder-0.0.3.zip
.
File metadata
- Download URL: treasure-guarder-0.0.3.zip
- Upload date:
- Size: 24.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c8a7a5c477d28b571852d0e098451b3521dce2b2ac5bc8338b040f811a7c691 |
|
MD5 | 315933392eb58fe38da0c92f858eb902 |
|
BLAKE2b-256 | ad60ba8f850e16a92cead0b7d7f3373f323b55c2dc07c62564bab9ea9872b43e |