tbmihailov / overleaf-backup-tool

A script that automatically backups all Overleaf projects to a local folder. It works.
GNU General Public License v3.0
47 stars 6 forks source link

implement retrying for git pull and clone #1

Closed d-higuchi closed 5 years ago

d-higuchi commented 6 years ago

when git pull or clone failure, retrying pull/clone:

INFO:root:26/44 Backing up project xxxxxxxxxxxxxxxxxxxx with url https://git.overleaf.com/xxxxxxxxxxxxxxxxxxxx to /var/tmp/git_backup/xxxxxxxxxxxxxxxxxxxx
Username for 'https://git.overleaf.com': XXXXXXXXXX@EXAMPLE.COM
Password for 'https://XXXXXXXXXX@EXAMPLE.COM@git.overleaf.com': 
INFO:root:error:Cmd('git') failed due to: exit code(1)
  cmdline: git pull
  stderr: 'remote: Please sign in using your email address and Overleaf password.
remote:
remote: *Note*: if you sign in to Overleaf using another provider, such
remote: as Google or Twitter, you need to set a password on your Overleaf
remote: account first. Please see https://www.overleaf.com/blog/195 for
remote: more information.
fatal: Authentication failed for 'https://git.overleaf.com/xxxxxxxxxxxxxxxxxxxx/'': retry:1/5
INFO:root:retrying
Username for 'https://git.overleaf.com': XXXXXXXXXX@EXAMPLE.COM
Password for 'https://XXXXXXXXXX@EXAMPLE.COM@git.overleaf.com': 
INFO:root:error:Cmd('git') failed due to: exit code(1)
  cmdline: git pull
  stderr: 'remote: Please sign in using your email address and Overleaf password.
remote:
remote: *Note*: if you sign in to Overleaf using another provider, such
remote: as Google or Twitter, you need to set a password on your Overleaf
remote: account first. Please see https://www.overleaf.com/blog/195 for
remote: more information.
fatal: Authentication failed for 'https://git.overleaf.com/xxxxxxxxxxxxxxxxxxxx/'': retry:2/5
INFO:root:retrying
Username for 'https://git.overleaf.com': XXXXXXXXXX@EXAMPLE.COM
Password for 'https://XXXXXXXXXX@EXAMPLE.COM@git.overleaf.com': 
INFO:root:Backup successful!