💾 OneGitBackup
This is a tool to make backups of organisations' Github repositories automatically.
💻 Examples of use
- 💿 The backup of public repositories :
We want to back up all the public repositories of our organisation and all their branches.
A UUID (Universally unique identifier) will then be generated and this will be the folder name where the backup will be saved.
Once the tool has completed its tasks, the backups will be available as a .zip file with the repository name as a prefix and the repository branch name as a suffix.
📦 Installation and use
- To use the tool on Linux :
1. Install the pre-required Python libraries :
$ wget https://github.com/BuyWithCrypto/OneGitBackup/releases/download/v1.0/requirements.txt && pip3 install -r requirements.txt
2. Download the executable file :
$ wget https://github.com/BuyWithCrypto/OneGitBackup/releases/download/v1.0/OneGitBackup.pyc
3. Start the executable :
$ python3 OneGitBackup.pyc
- To use the tool on Windows :
1. Clone the repository with git :
$ git clone https://github.com/BuyWithCrypto/OneGitBackup/
2. Install the pre-required Python libraries :
$ pip install -r requirements.txt
3. Start the executable :
$ python main.py
🔨 Contribution for developers
✅ Setting up the environment :
1. Clone the Github repository :
$ git clone https://github.com/BuyWithCrypto/OneGitBackup/
2. Navigate to the project folder :
$ cd OneGitBackup/
3. Install the pre-required Python libraries :
$ pip3 install -r requirements.txt
🚧 Building the source code
To compile the source code into an executable, you can use this command. :
$ python3 -m py_compile main.py