User Tools

Site Tools


software:git:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

software:git:start [2020/08/20 01:27]
thegarnet created
software:git:start [2020/08/23 18:16]
Line 1: Line 1:
-====== 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 
- 
-  * Is it the chroot issue mentioned here? https://docs.plesk.com/en-US/obsidian/administrator-guide/website-management/scheduling-tasks.65207/ 
-  * Or maybe this answer: https://stackoverflow.com/questions/41030190/command-to-run-a-bat-file 
-  * Some progress creating c:\users\administrators\documents\dailyrun.bat - plesk can execute this 
- 
-<code> 
- 
-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  
- 
-</code> 
- 
-  * SSH Fails from crontab but succeeds when executed from a command line - https://stackoverflow.com/questions/869589/why-ssh-fails-from-crontab-but-succedes-when-executed-from-a-command-line 
-  * SSH agent and Crontab, how to get them to work together https://stackoverflow.com/questions/2205282/ssh-agent-and-crontab-is-there-a-good-way-to-get-these-to-meet 
- 
-  * Queries 
-    * [[https://www.google.com/search?q=running+git+from+background+doesnt+work&oq=running+git+from+background+doesnt+work&aqs=chrome..69i57j33.7311j0j7&sourceid=chrome&ie=UTF-8|running git from background doesnt work]] 
-    *  
-  * Articles about GIT specifically 
-    * Adding remotes to GIT - https://git-scm.com/book/it/v2/Git-Basics-Working-with-Remotes 
-    * How to tell GIT which private key to use - [[https://superuser.com/questions/232373/how-to-tell-git-which-private-key-to-use|link]] 
-      * ~/.ssh/config can list hosts and which identify file and users to use - example GITHUB 
- 
  
software/git/start.txt · Last modified: 2020/08/23 18:16 (external edit)