Skip to main content

A python script for backup repositories to custom git server

Project description

treasure-guarder

https://img.shields.io/pypi/v/treasure-guarder.svg https://travis-ci.org/starofrainnight/treasure-guarder.svg?branch=master https://ci.appveyor.com/api/projects/status/github/starofrainnight/treasure-guarder?svg=true

A python script for backup repositories to custom git server

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:

  1. Ensure latest git command exists in your shell environment

  2. Ensure you have rights to access to the source repository and the destination repository

  3. Ensure there won’t prompt password when pushing to destination repository

  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

treasure-guarder-0.0.3.zip (24.5 kB view details)

Uploaded Source

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

Hashes for treasure-guarder-0.0.3.zip
Algorithm Hash digest
SHA256 0c8a7a5c477d28b571852d0e098451b3521dce2b2ac5bc8338b040f811a7c691
MD5 315933392eb58fe38da0c92f858eb902
BLAKE2b-256 ad60ba8f850e16a92cead0b7d7f3373f323b55c2dc07c62564bab9ea9872b43e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page