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

Resuming interrupted backups #57

Open
astatine- opened this issue Jul 2, 2020 · 4 comments
Open

Resuming interrupted backups #57

astatine- opened this issue Jul 2, 2020 · 4 comments
Labels
bitbucket Issues related to Bitbucket bug

Comments

@astatine-
Copy link

I have a bitbucket account with dozens of repos. While backing up, after about 25 odd repos, I saw this error (see below). Starting scmbackup again restarts from the first repo. Is there a way to make it skip the already downloaded ones? Perhaps the commit hash can be used to compare if it is already present? Any suggestions to resume interrupted backups will be very helpful. Thanks for your time and effort in creating and maintaining this.

fatal: protocol error: unexpected 'Error running git: fork/exec /usr/bin/git-upload-pack: no such file or directory'

Backup failed!
The application will close in 5 seconds!

-arun

@christianspecht
Copy link
Owner

SCM Backup only makes a full clone when it backups the repo for the first time.
After that, it just does git fetch, i.e. it only checks if there are new commits in the repo on the server, and if yes, it only pulls those.

IMO, skipping some repos doesn't make sense, because for a full offline backup of your Bitbucket account, you want SCM Backup to pull every repo on every run.


It makes more sense to find out why it's failing.
SCM Backup doesn't do any special Git magic, it just calls the Git executable that's on your machine.
Your error message sounds more like a problem with your Git installation.

Do you have another machine where you can try it?

@christianspecht
Copy link
Owner

Interesting...now there are two more people who have the same issue.

Additional questions:

  • Did it work before and stopped working, or are you new SCM Backup users and it never worked?
  • Can you try the steps SCM Backup does directly in Git, with the repo where the problem occured?

@astatine-
Copy link
Author

astatine- commented Jul 15, 2020 via email

@christianspecht
Copy link
Owner

Sorry for the long delay - so far, I have no clue what could cause the problem, so I was not sure which questions to ask you.

Some ideas:

  1. The Bitbucket account that you're backing up: user or team?
    I know it's somehow unified now with Bitbucket's move to workspaces, but was it a user or a team before?

  2. Are you using Git only or did you have Mercurial repos until Bitbucket dropped support at July 1st?
    If you had Mercurial repos, did you delete them and then created new Git repos under the same name/URL? (and are those the ones that are failing now?)

  3. I already asked you to try the steps SCM Backup does directly in Git, with the repo where the problem occured.
    Can you try this again, but this time from the directory where your local SCM Backup installation is?

  4. Under which operating system are you running SCM Backup?

PS: I don't see the screenshots that you mentioned in your last answer, do you still have them? If yes, please post here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bitbucket Issues related to Bitbucket bug
Projects
None yet
Development

No branches or pull requests

2 participants