Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rubiojr
Copy link
Member

@rubiojr rubiojr commented Apr 13, 2016

Will optionally fsck the backed up repos. Disabled by default.

When using ghe-backup -v it will also print warnings and errors from git fsck.

Adds a new configuration variable: GHE_BACKUP_FSCK=no

/cc @github/backup-utils @mgriffin

@rubiojr
Copy link
Member Author

rubiojr commented Apr 14, 2016

Gonna merge this for now if there are no objections. Disabled by default, tested and useful for troubleshooting/debugging. Looks something like this when enabled:

./bin/ghe-backup
Starting backup of foobar.io in snapshot 20160414T075033
Connect foobar.io:122 OK (v2.5.0)
Backing up GitHub settings ...
Backing up SSH authorized keys ...
Backing up SSH host keys ...
Backing up MySQL database ...
Backing up Redis database ...
Backing up audit log ...
Backing up hookshot logs ...
Backing up Git repositories ...
Backing up GitHub Pages ...
Backing up asset attachments ...
Backing up storage data ...
Backing up hook deliveries ...
Backing up Elasticsearch indices ...
Running git fsck on repos...
* Repos verified: 6716, Errors: 1, Took: 1246s
Pruning 4 failed snapshot(s) ...
Completed backup of foobar.io:122 in snapshot 20160414T075033 at 08:12:23

Running ghe-backup with verbose mode enabled will also echo the git fsck warnings/errors to stdout.

@rubiojr rubiojr merged commit 9ae2fe3 into master Apr 14, 2016
@rubiojr rubiojr deleted the ghe-backup-fsck branch April 14, 2016 15:41
@dbussink
Copy link
Contributor

LGTM 👍

@rubiojr rubiojr restored the ghe-backup-fsck branch April 14, 2016 16:20
@rubiojr rubiojr deleted the ghe-backup-fsck branch April 18, 2016 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants