https://github.com/chyroc/github2dropbox
Backup GitHub Data to DropBox
https://github.com/chyroc/github2dropbox
Last synced: 9 months ago
JSON representation
Backup GitHub Data to DropBox
- Host: GitHub
- URL: https://github.com/chyroc/github2dropbox
- Owner: chyroc
- License: apache-2.0
- Created: 2022-02-24T12:01:13.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T09:25:04.000Z (about 3 years ago)
- Last Synced: 2025-03-26T21:37:53.577Z (10 months ago)
- Language: Go
- Size: 91.8 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github2dropbox
Backup GitHub Data to DropBox: [View on Marketplace](https://github.com/marketplace/actions/github2dropbox)
Support:
- Star
- Follower
- Following
- Repo
- Issue
- Issue Comment
- Gist
- .git
## Usage
### 1. Create a new repository to run backup action
### 2. Get the access token from [DropBox](https://www.dropbox.com/developers/apps)
- 2.1 Create a new app
- 2.2 Add permission
- files.metadata.write
- files.content.write
- and then submit the change.
- 2.3 Set Access token expiration to No-Expiration
- 2.4 Click Generate Access Token
- and copy the access token.
### 3. Generate the access token from [Personal Access Token](https://github.com/settings/tokens)
- 3.1 Expiration: No-Expiration
- 3.2 Choose ALL Permissions
### 4. Config the backup action
add file: `.github/workflows/github-backup.yml` to your project
```yaml
name: github-backup
on:
push:
branches: [ master ] # trigger on pushes to master
pull_request: # trigger on pull requests
jobs:
run:
runs-on: ubuntu-latest
timeout-minutes: 60 # timeout after 60 minutes
steps:
- name: Backup
uses: chyroc/github2dropbox@v0.4.0
with:
DROPBOX_TOKEN: ${{ secrets.DROPBOX_TOKEN }} # dropbox token
GITHUB_TOKEN: ${{ secrets.G_TOKEN }} # github token
ENABLE_REPO: true # enable repo backup
ENABLE_STAR: true # enable star backup
ENABLE_FOLLOWER: true # enable follower backup
ENABLE_FOLLOWING: true # enable following backup
ENABLE_GIST: true # enable gist backup
ENABLE_ISSUE: true # enable issue backup(need ENABLE_REPO=true)
ENABLE_ISSUE_COMMENT: true # enable issue comment backup(need ENABLE_REPO=true)
ENABLE_REPO_GIT: true # enable repo .git folder backup(need ENABLE_REPO=true)
```
## Backup File Structure
```text
GitHub/
/
repo/
/
repo.json
repo.zip
issue/
/
comment/
star/
follower/
following/
github2dropbox/
meta.json
```
## Change Log
- 2022-07-18 v0.4.0
- Fix: check that there are no path separators in GitHub API results.
- 2022-03-01 v0.3.0
- Docs: update readme
- 2022-02-25 v0.2.0
- Add: support for gist, star, follower, following, git, issue and issue comment
- 2022-02-24 v0.1.0
- Initial release