Skip to content

This is for sync your text data to your remote git repo. you can push notes, bookmarks or anykind of data to your remote repo automatically.

Notifications You must be signed in to change notification settings

kasun-buddhi/git_sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Git_Sync

This is for simple git push script for notes, bookmarks and other useful text content which needed to store in remote repository. it can push daily or you can make this easily.

Getting Started

  1. Go to your content folder and git init and make a remote repository and add into your project. if you already did this step ignore 1st step
git init
git remote add origin <remote_url>
  1. Download sync.sh file to your content folder where git init happened.
  2. Open sync.sh file and add your path to PROJECT_PATH variable
PROJECT_PATH="/your_project_path"
  1. Make it executable
sudo chmod +x sync.sh
  1. Then add script to crontab to shedule the run times
crontab -e #(To set value)

Then add repeating time period

minute hour day month day_of_week <absolute_path/sync.sh>

example:

24 10 * * * /your_path/sync.sh #(this will do everyday 10.24 am ["*" means any])

About

This is for sync your text data to your remote git repo. you can push notes, bookmarks or anykind of data to your remote repo automatically.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages