Skip to content

how to correctly update local backup? #196

Description

@ma-ji

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.

Activity

  1. Deliaz commented on Apr 17, 2022

    @Deliaz

    Try without --incremental first

  2. whwright commented on Apr 20, 2022

    @whwright
    Contributor

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

  3. ma-ji commented on Jun 21, 2022

    @ma-ji
    Author

    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?

  4. ma-ji commented on Jun 21, 2022

    @ma-ji
    Author

    Try without --incremental first

    Unfortunately, this does not seem to be working.

  5. whwright commented on Jun 30, 2022

    @whwright
    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.

  6. YoungMahesh commented on Nov 22, 2022

    @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 ?

  7. whwright commented on Nov 22, 2022

    @whwright
    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.

  8. Iamrodos commented on Dec 3, 2025

    @Iamrodos
    Contributor

    @josegonzalez this can be closed as it was addressed by #457

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions