Download the PHP package chsxf/git-repo-backup without Composer

On this page you can find all versions of the php package chsxf/git-repo-backup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package git-repo-backup

About This Project

git-repo-backup is a command-line tool to manage git repository backups.

At the moment, it works only with GitHub or BitBucket Cloud.

Conventions

This project uses gitmoji for its commit messages.

Installation

Requirements

Installing with Composer

Installing Globally

We recommend installing this package globally.

If not already, you need to add the global composer bin directory to your PATH environment variable.

Installing Locally

But you can also install it locally if it better fits your setup.

The tool will be installed in the local vendor folder and the executable script can be called with the vendor/bin/git-repo-backup command.

Updating with Composer

If installed globally, you can run composer global update chsxf/git-repo-backup.

If installed locally, simply run composer update chsxf/git-repo-backup in the folder where the tool was previously installed.

Usage

Required Parameters

Parameter Description
username GitHub: User name used to authenticate with the platform's API
BitBucket Cloud: Workspace (user or organization) for which to get repositories
password See Passwords section below
platform Platform on which the repositories are hosted

Accepted values:
  • github
  • bitbucket (BitBucket Cloud)
clone-protocol Protocol to use when cloning/fetching the repositories

Accepted values:
  • ssh (recommended)
  • https

Optional Parameters

Parameter Description
no-git-lfs Skip availability test for Git LFS. Use this setting if you don't use Git LFS with any of your repositories.
dest-dir Destination path to store the repository backups. If not set, the script stores backups in current working directory.
ssh-key Not supported on Windows
Specific SSH key to use with repositories, useful if you have several SSH keys for the same domain.
The specific path will be passed to git commands thanks to the core.sshCommand config.
Ignored if --clone-protocol is set to https
exclude Comma-separated list of excluded repositories
Each entry can be either an exact match if containing only alphanumerical characters, hyphens and underscores, or a case-insensitive Perl-Compatible Regular Expression otherwise
dry-run If present, no clone or fetch/pull operation is done, and only repositories information are reported
sort-by Specify how repositories are sorted before being processed.
Repositories can be sorted by name (default) or by size.
Order can ascending (asc - default) or descending (desc).

Accepted values:
  • name asc
  • name desc
  • size asc
  • size desc

Passwords

The password value differs from one platform to another.

On GitHub, the password must be a personal access token.

On BitBucket Cloud, the password must be an app password.

Planned Improvements

License

This repository is distributed under the MIT License.


All versions of git-repo-backup with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package chsxf/git-repo-backup contains the following files

Loading the files please wait ...