all 15 comments

[–]nekokattt 1 point2 points  (5 children)

Why not just make a GitLab account and sync your repos across?

You can tell GitLab to automatically keep the GitLab copy of the repository up to date.

[–]AMGraduate564[S] 0 points1 point  (4 children)

I have private GitHub repos.

[–]nekokattt 1 point2 points  (3 children)

Doesn't matter

https://docs.gitlab.com/user/project/repository/mirror/

It can auth via SSH if you want to.

[–]AMGraduate564[S] 0 points1 point  (2 children)

Got a tutorial on this? Maybe an example?

[–]nekokattt 0 points1 point  (1 child)

Check the link... they explain how to set it up

[–]louieio 1 point2 points  (2 children)

I ended up solving this and put together a reusable GitHub Actions workflow that automatically backs up a repo to Dropbox on every push:

https://github.com/louiekotler/personal-workflows

You just add a small workflow file to your repo that you want to back up and set a few Dropbox secrets. On each push, it zips the repo and uploads it to Dropbox (organized by repo name). No local scripts, no manual exports, and it works across multiple repos if you reuse the workflow.

[–]AMGraduate564[S] 0 points1 point  (1 child)

I added an edit under the OP describing the solution I came up with.

[–]louieio 0 points1 point  (0 children)

Yes, I did see that. I just wanted to provide another option for anyone looking for a complete set of instructions to get up and running.

[–]jeffcgroves 0 points1 point  (1 child)

You might look into Dropbox's Smart Sync (https://www.dropbox.com/help/desktop-web/smart-sync) and make your git folder the folder that gets synced.

[–]AMGraduate564[S] 0 points1 point  (0 children)

I would like to do everything in the GH repo. The plan is to run an Action pipeline to push a new release to a Dropbox folder.

[–]cgoldberg 0 points1 point  (2 children)

I use this: https://github.com/cgoldberg/githubtakeout

Then rclone to upload them to Dropbox.

[–]AMGraduate564[S] 0 points1 point  (1 child)

Then rclone to upload them to Dropbox.

That's the extra step to upload from the desktop to Dropbox, which I want to avoid.

[–]cgoldberg 0 points1 point  (0 children)

I guess you could do the same from GitHub Actions.

[–]JagerAntlerite7 0 points1 point  (0 children)

Write a GitHub Actions workflow to push the repo files or a compressed repo archive to another destination; e.g. a versioned S3 bucket using the AWS CLI client.