https://github.com/kkamara/php-github-to-bitbucket-backup-repo-updater
:computer: (29-Aug-2023) (Download) Compatible with Windows, MacOS & Linux. https://packagist.org/packages/kkamara/php-github-to-bitbucket-backup-repo-updater
https://github.com/kkamara/php-github-to-bitbucket-backup-repo-updater
binary bitbucket cli-tool github migrations updater vc version-control
Last synced: 5 months ago
JSON representation
:computer: (29-Aug-2023) (Download) Compatible with Windows, MacOS & Linux. https://packagist.org/packages/kkamara/php-github-to-bitbucket-backup-repo-updater
- Host: GitHub
- URL: https://github.com/kkamara/php-github-to-bitbucket-backup-repo-updater
- Owner: kkamara
- License: bsd-3-clause
- Created: 2023-08-29T17:10:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-20T06:53:47.000Z (over 1 year ago)
- Last Synced: 2025-01-20T07:10:49.283Z (over 1 year ago)
- Topics: binary, bitbucket, cli-tool, github, migrations, updater, vc, version-control
- Language: PHP
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README

# php-github-to-bitbucket-backup-repo-updater
:computer: (29-Aug-2023) Compatible with Windows, MacOS & Linux.
## Quickstart
```bash
git clone https://github.com/kkamara/php-github-to-bitbucket-backup-repo-updater
cd php-github-to-bitbucket-backup-repo-updater
# Update config.json in your php-github-to-bitbucket-backup-repo-updater directory.
composer i
composer start
```
## Installation
* [PHP and MySQL](https://www.apachefriends.org/download.html)
* [Composer](https://getcomposer.org/)
If you're using Docker make sure you have [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/) installed.
Update `config.json` with your github and bitbucket remote urls for your repos.
```json
{
"repos": {
"kelvinkamara.com": {
"github": {
"origin": "https://github.com/kkamara/kelvinkamara.com",
"branch": "main"
},
"bitbucket": {
"origin": "git@bitbucket.org:kkamara2/kelvinkamara.com",
"branch": "main"
}
}
}
}
```
```bash
git clone https://github.com/kkamara/php-github-to-bitbucket-backup-repo-updater
cd php-github-to-bitbucket-backup-repo-updater
# composer install
composer i
```
## Usage
```bash
# php src/MainClass.php
composer start
```
## Using Linux with Docker?
```bash
make start # build & run your script
make stop # stop your docker container
```
## Using Windows with Docker?
```bash
.\ps\run.ps1 start # build & run your script
.\ps\run.ps1 stop # stop your docker container
```
## Misc
[See Github to Bitbucket Backup Repo Updater](https://github.com/kkamara/nodejs-github-to-bitbucket-backup-repo-updater) made with NodeJS.
[See PHP ReactJS Boilerplate](https://github.com/kkamara/php-reactjs-boilerplate).
[See ReactJS Boilerplate](https://github.com/kkamara/reactjs-boilerplate).
[See PHP Scraper](https://github.com/kkamara/php-scraper).
[See NodeJS ReactJS Boilerplate](https://github.com/kkamara/nodejs-reactjs-boilerplate).
[PHP Docker Skeleton](https://github.com/kkamara/php-docker-skeleton).
[Python Docker Skeleton](https://github.com/kkamara/python-docker-skeleton).
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[BSD](https://opensource.org/licenses/BSD-3-Clause)