Skip to content

Commit a2391a5

Browse files
committed
remove pointless and unsafe exports in examples
1 parent 9340aa3 commit a2391a5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -429,27 +429,27 @@ Github Backup Examples
429429

430430
Backup all repositories, including private ones using a classic token::
431431

432-
export ACCESS_TOKEN=SOME-GITHUB-TOKEN
432+
ACCESS_TOKEN=SOME-GITHUB-TOKEN
433433
github-backup WhiteHouse --token $ACCESS_TOKEN --organization --output-directory /tmp/white-house --repositories --private
434434

435435
Use a fine-grained access token to backup a single organization repository with everything else (wiki, pull requests, comments, issues etc)::
436436

437-
export FINE_ACCESS_TOKEN=SOME-GITHUB-TOKEN
437+
FINE_ACCESS_TOKEN=SOME-GITHUB-TOKEN
438438
ORGANIZATION=docker
439439
REPO=cli
440440
# e.g. git@github.com:docker/cli.git
441441
github-backup $ORGANIZATION -P -f $FINE_ACCESS_TOKEN -o . --all -O -R $REPO
442442

443443
Quietly and incrementally backup useful Github user data (public and private repos with SSH) including; all issues, pulls, all public starred repos and gists (omitting "hooks", "releases" and therefore "assets" to prevent blocking). *Great for a cron job.* ::
444444

445-
export FINE_ACCESS_TOKEN=SOME-GITHUB-TOKEN
445+
FINE_ACCESS_TOKEN=SOME-GITHUB-TOKEN
446446
GH_USER=YOUR-GITHUB-USER
447447

448448
github-backup -f $FINE_ACCESS_TOKEN --prefer-ssh -o ~/github-backup/ -l error -P -i --all-starred --starred --watched --followers --following --issues --issue-comments --issue-events --pulls --pull-comments --pull-reviews --pull-commits --labels --milestones --security-advisories --discussions --repositories --wikis --releases --assets --attachments --pull-details --gists --starred-gists $GH_USER
449449
450450
Debug an error/block or incomplete backup into a temporary directory. Omit "incremental" to fill a previous incomplete backup. ::
451451

452-
export FINE_ACCESS_TOKEN=SOME-GITHUB-TOKEN
452+
FINE_ACCESS_TOKEN=SOME-GITHUB-TOKEN
453453
GH_USER=YOUR-GITHUB-USER
454454

455455
github-backup -f $FINE_ACCESS_TOKEN -o /tmp/github-backup/ -l debug -P --all-starred --starred --watched --followers --following --issues --issue-comments --issue-events --pulls --pull-comments --pull-reviews --pull-commits --labels --milestones --discussions --repositories --wikis --releases --assets --pull-details --gists --starred-gists $GH_USER

0 commit comments

Comments
 (0)