linux:push_to_git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
linux:push_to_git [2022/02/11 11:36] – external edit 127.0.0.1 | linux: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| | + | </ |
- | ^Owner: | + | |
- | ^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 '' | ||
- | |||
- | ====== Setup ====== | ||
- | Add the directories to '' | ||
- | <file config push_to_git.config> | ||
- | FOLDERS="/ | ||
- | </ | ||
- | |||
- | Add the script to crontab: | ||
- | <code bash> | ||
- | cat >>/ | ||
- | |||
- | # AUTO push_to_git folders | ||
- | 0 | ||
- | EOF | ||
- | </ | ||
- | |||
- | ===== usage ===== | ||
- | |||
- | <code bash> | ||
- | bash / | ||
- | </ | ||
linux/push_to_git.txt · Last modified: 2022/11/16 08:32 by dodger