Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to correctly update local backup? #196

Open
ma-ji opened this issue Apr 8, 2022 · 7 comments
Open

how to correctly update local backup? #196

ma-ji opened this issue Apr 8, 2022 · 7 comments

Comments

@ma-ji
Copy link

ma-ji commented Apr 8, 2022

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.

@Deliaz
Copy link

Deliaz commented Apr 17, 2022

Try without --incremental first

@whwright
Copy link
Contributor

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

@ma-ji
Copy link
Author

ma-ji commented Jun 21, 2022

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
Copy link
Author

ma-ji commented Jun 21, 2022

Try without --incremental first

Unfortunately, this does not seem to be working.

@whwright
Copy link
Contributor

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.

@YoungMahesh
Copy link

YoungMahesh commented Nov 22, 2022

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 ?

@whwright
Copy link
Contributor

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.

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

No branches or pull requests

4 participants