python-github-backup icon indicating copy to clipboard operation
python-github-backup copied to clipboard

how to correctly update local backup?

Open ma-ji opened this issue 2 years ago • 7 comments

Hi, I want to update local backup repos, but maybe I'm using the wrong command? Thanks for helping!

The code I'm using: github-backup ma-ji --incremental --token xxx --output-directory ./ --repositories --private --fork --all

After running the command, the local files is still not update to date.

ma-ji avatar Apr 08 '22 19:04 ma-ji

Try without --incremental first

Deliaz avatar Apr 17 '22 10:04 Deliaz

This tool pulls remotes using fetch, so your "local files" won't change until the merge in the remote branch.

whwright avatar Apr 20 '22 14:04 whwright

This tool pulls remotes using fetch, so your "local files" won't change until the merge in the remote branch.

Can explain more about this? How can actually update the local files?

ma-ji avatar Jun 21 '22 22:06 ma-ji

Try without --incremental first

Unfortunately, this does not seem to be working.

ma-ji avatar Jun 21 '22 22:06 ma-ji

This tool pulls remotes using fetch, so your "local files" won't change until the merge in the remote branch.

Can explain more about this? How can actually update the local files?

You might need to learn more about how a git repo works under the hood, but you will want to merge in the latest remote branch (which has been fetched via the backup) using git merge {remote}/{branch} or likely git merge origin/master.

whwright avatar Jun 30 '22 16:06 whwright

This tool pulls remotes using fetch, so your "local files" won't change until the merge in the remote branch.

Can explain more about this? How can actually update the local files?

You might need to learn more about how a git repo works under the hood, but you will want to merge in the latest remote branch (which has been fetched via the backup) using git merge {remote}/{branch} or likely git merge origin/master.

@whwright Can I pass any argument to github-backup command, so it will automatically run git merge {remote}/{branch} for all repositories in my local-backup ?

YoungMahesh avatar Nov 22 '22 10:11 YoungMahesh

This tool pulls remotes using fetch, so your "local files" won't change until the merge in the remote branch.

Can explain more about this? How can actually update the local files?

You might need to learn more about how a git repo works under the hood, but you will want to merge in the latest remote branch (which has been fetched via the backup) using git merge {remote}/{branch} or likely git merge origin/master.

@whwright Can I pass any argument to github-backup command, so it will automatically run git merge {remote}/{branch} for all repositories in my local-backup ?

No this is not supported, neither is it necessary. The data is in your local copy of the repo if the tool as been run.

whwright avatar Nov 22 '22 19:11 whwright