- Written in :
- Available for :
- Simply run on command line with arguments
- You can set it up along with cron, task scheduler etc. for auto backups
Download the latest executable for your machine from Releases
Run the executable via command line only
flag | required | default | description |
---|---|---|---|
-p, --path | no | current working directory | provide complete path for where to store backup zip/folder |
-nz, --nozip | no | false | whether to zip all the repo together or keep them in a folder only; by default it will zip |
-n, --name | no | backup-{YYYY-MM-DD-HH-mm-ss} | name of folder/zip; more details in Dynamic Name |
-u, --utc | no | false | use utc timezone for formatting time; default is system |
-t, --token | YES | - | user github token with all repo access; more details in Github Token |
-c, --concurrent | no | 2 | no of concurrent repo download operations |
The name of the zip/folder can be dynamic based on current date time. You can provide the dynamic timestamp within {}
& it will be automatically parsed to get current values.
- Always provide the name & path in
''
or""
- example
./github-backup-win.exe -t abcd -n 'backup-{YYYY}'
- The timestamp values is based on moment.js ; refer to moment docs for creating timestamp
- You can have multiple timestamp in name
- example
backup-{YYYY}-xyz-{MM}abxd{DD}
will give result backup-2024-xyz-01abxd25
- example
-
with path
./github-backup-win.exe -t abcd -p 'E:\'
-
no zip
./github-backup-win.exe -t abcd -nz
-
utc timestamp
./github-backup-win.exe -t abcd -n '{YY-MM-DD}' -u
-
concurrent operations (10 parallel downloads)
./github-backup-win.exe -t abcd -c 10
-
with all options (short or long form can be interchanged)
./github-backup-win.exe --token abcd --path 'E:\' --name 'backup-{MM}-{DD}' --nozip --utc
Twitter - @dawnimpulse
Email - [email protected]
github-backup is free and unencumbered public domain software.
For more information, see https://unlicense.org/ or the accompanying UNLICENSE file.
Written with StackEdit.