Skip to content

kkamara/ghbbupdater

Repository files navigation

MainClass.png

github-to-bitbucket-backup-repo-updater

💻 (29-Aug-2023) Compatible with Windows, MacOS & Linux.

Quickstart

git clone https://github.com/kkamara/ghbbupdater
cd ghbbupdater
# Update config.json in your ghbbupdater directory.
composer i
composer start

Installation

If you're using Docker make sure you have Docker and Docker Compose installed.

Update config.json with your github and bitbucket remote urls for your repos.

{
  "repos": {
    "kelvinkamara.com": {
      "github": {
        "origin": "https://github.com/kkamara/kelvinkamara.com",
        "branch": "develop"
      },
      "bitbucket": {
        "origin": "git@bitbucket.org:kkamara2/kelvinkamara.com",
        "branch": "develop"
      }
    }
  }
}
git clone https://github.com/kkamara/ghbbupdater
cd ghbbupdater
# composer install
composer i

Usage

# php src/MainClass.php
composer start

Using Linux with Docker?

make start # build & run your script
make stop  # stop your docker container

Using Windows with Docker?

.\ps\run.ps1 start # build & run your script
.\ps\run.ps1 stop  # stop your docker container

Misc

old Github to bitbucket backup repo updater.

PHP Docker Skeleton.

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