Logo

dev-resources.site

for different kinds of informations.

git-syr - Sync Your Repos

Published at
12/23/2022
Categories
showdev
go
git
Author
Andrew Erlikh
Categories
3 categories in total
showdev
open
go
open
git
open
git-syr - Sync Your Repos

Pull or push your git repos regularly. For dotfiles backups or note-taking in a git repo.

Why?

I used a simple cron script to sync my note-taking app for years, but it becomes complicated, when you have more than one repository to sync. So, I created this app with easy config and GUI.

What it does?

git-syr has separate config for each repository. It indicates whether the repo should be pulled, committed and pushed or both every N seconds (minutes, hours).
It can run in CLI-only mod or with web GUI.

Example

repos.yaml:

- name: Dotfiles
  path: /home/data/repo/dotfiles
  timeout: 4h
  pull: "no"
  push: "yes"

- name: MyNotes
  path: /home/data/repo/MyNotes
  timeout: 1m
  pull: "yes"
  push: "yes"

Try it

https://github.com/aceberg/git-syr

Featured ones: