User Tools

Site Tools


Sidebar

software:git:start

This is an old revision of the document!


GIT Related Issues

Backup script using GIT works fine except when run from scheduled tasks

Overall task: Trying to merge information from one repository into another, then periodically backup the latest combined information to another repository. This running on Plesk Obsidian with Windows server.

Problem: The script works great when run from a Remote Desktop login as administrator. But the script hangs when run from a Plesk scheduled task, it hangs at the first GIT pull statement. It then hangs at some other points to.

First problem: The batch file didnt run at all as a scheduled task. Putting the batch in Administrator/Documents seemed to solve this issue

rem This will work from a plesk fired batchfile. But it requires a dummy repo to be created, and the clone command to run from there
git init
git config --global core.sshCommand "ssh -i c:\\users\\administrator\\.ssh\\id_rsa -F /dev/null"

git clone https://github.com/garnetr/thegarnetnet 
software/git/start.1597886874.txt.gz · Last modified: 2020/08/20 05:27 (external edit)