User Tools

Site Tools


linux:push_to_git

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
linux:push_to_git [2022/02/11 11:36] – external edit 127.0.0.1linux:push_to_git [2022/11/16 08:32] (current) dodger
Line 1: Line 1:
 ====== Auto push_to_git script ====== ====== Auto push_to_git script ======
  
-^  Documentation  ^| +<WRAP center round info 60%> 
-^Name:| Auto push_to_git script | +Moved to
-^Description:| Automatic push changes to git (noprompt)+https://git.ciberterminal.net/public/push_to_git 
-^Modification date :| 29/04/2019| +</WRAP>
-^Owner:|dodger| +
-^Notify changes to:| dodger | +
-^Tags:| |+
  
- 
-====== Instructions ====== 
- 
-Get script on gitea 
- 
-====== Pre-Requisites ====== 
-On git*: 
-  * Create a repository in which the auto push will upload the data 
-  * Generate a ssh keypair in the source host. 
-  * Add the public ssh key to the repository with write permissions. 
- 
-On the machine push_to_git will run: 
-  * Make the 1st pull into the directory. 
-  * Add all the files. 
-  * Run ''push_to_git'' manually and check if it works. 
- 
-====== Setup ====== 
-Add the directories to ''push_to_git.config'': 
-<file config push_to_git.config> 
-FOLDERS="/home/www/dokuwiki.ciberterminal.net" 
-</file> 
- 
-Add the script to crontab: 
-<code bash> 
-cat >>/etc/crontab<<EOF 
- 
-# AUTO push_to_git folders 
-0         * root  /home/dodger/push_to_git/push_to_git.sh 
-EOF 
-</code> 
- 
-===== usage ===== 
- 
-<code bash> 
-bash /home/dodger/push_to_git/push_to_git.sh 
-</code> 
  
linux/push_to_git.txt · Last modified: 2022/11/16 08:32 by dodger