Skip to content

Commit

Permalink
chore(gh-backup): add --bare to example script
Browse files Browse the repository at this point in the history
Backup repositories with "git clone --mirror"
  • Loading branch information
n0bodysec committed Mar 7, 2022
1 parent e3482cd commit 90a9f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gh-backup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ MAX_BACKUPS=2
# set -e

# backup repositories
github-backup $USERNAME --token=$GH_TOKEN --all --fork --output-directory=$WORK_DIR/data/$USERNAME/$TIMESTAMP
github-backup $USERNAME --token=$GH_TOKEN --all --bare --fork --output-directory=$WORK_DIR/data/$USERNAME/$TIMESTAMP

# delete empty folders
find $WORK_DIR/data/$USERNAME/ -type d -empty -maxdepth 1 | xargs rm -rf
Expand Down

0 comments on commit 90a9f77

Please sign in to comment.