Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mjaschen/codebase-backup
Backup Script for Codebase Git Repositories
https://github.com/mjaschen/codebase-backup
Last synced: 30 days ago
JSON representation
Backup Script for Codebase Git Repositories
- Host: GitHub
- URL: https://github.com/mjaschen/codebase-backup
- Owner: mjaschen
- License: mit
- Created: 2014-12-12T10:06:46.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-29T15:08:24.000Z (almost 7 years ago)
- Last Synced: 2024-10-16T08:55:42.697Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Codebase Repository Backup
[Codebase][] is “Git, Mercurial and Subversion hosting with project management tools”.
It's used for hosting software projects, like Github or Gitlab.Codebase provides an API which is leveraged by this tool for exploring all
of an account's repositories and backup them to a local folder.## Requirements
- Codebase account
- PHP ≥5.6## Installation and Setup
* clone the backup script repository: `git clone [email protected]:mjaschen/codebase-backup.git`
* change into the newly created directory: `cd codebase-backup`
* run `composer install --no-dev`
* create config file
* run the backup script### Installation in one line
git clone [email protected]:mjaschen/codebase-backup.git && cd codebase-backup && composer install --no-dev
### Setup
Create a config file: `cp config.php.template config.php`
Add config options in `config.php`:
* **CODEBASE_USER** your Codebse username, e. g. 'foobarinc/mjaschen', see "Settings > My Profile"
* **CODEBASE_TOKEN** Codebase API token, see "Settings > My Profile"
* **BACKUP_DIR** a backup target directory, e. g. `/Volumes/Backup/Codebase`
* **GIT_BIN** path to Git executable; optional### Run the backup script
make backup
or
php codebase_backup.php
## References
* [Codebase API Documentation](http://support.codebasehq.com/kb)
[Codebase]: https://www.codebasehq.com/