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 hashes)

Uploaded Source

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