geerlingguy / my-backup-plan

How I back up all my data.
811 stars 48 forks source link

Make sure *all* my GitHub repositories are cloned #5

Closed geerlingguy closed 2 years ago

geerlingguy commented 2 years ago

Right now, I am only able to clone my personal GitHub repositories that are public. See How do I also clone private repositories? in Gickup's issue queue.

I would also like to make sure to back up other organizational repos (like midwesternmac).

geerlingguy commented 2 years ago

Removing the following since upstream takes care of it as of 0.9.2:

KNOWN_HOSTS=~/.ssh/known_hosts

# Make sure a known_hosts file exists.
if [ ! -f "$KNOWN_HOSTS" ]; then
  echo 'Generating known_hosts file.'
  ssh-keyscan github.com >> $KNOWN_HOSTS
fi
geerlingguy commented 2 years ago

Testing with private repos:

# Before
$ ls /Volumes/Git-Backups/ | wc -l
250

# After
TODO
geerlingguy commented 2 years ago

Hmm... as part of https://github.com/cooperspencer/gickup/issues/16 — I found out that it's now cloning every repo to which I have access, including those in other orgs, like Ansible, Operator Framework, etc.

geerlingguy commented 2 years ago

Looks like that issue's been resolved, and the cloning seems to be working great now!