Skip to content

Rose1917/gsync

Repository files navigation

GSYNC(in develop)

Introduction

intruction

  • like onedrive command line version, gsync is a free, open source, server-config support command line sync tool based on git.
  • why I developed this: it is hard for me to find a good sync tool in linux command line! Althougn I know git itself is good enough to be a sync tool. but i am tired of commiting files when i left my laptop in my bed room.And also, in some cases, I do not care the version control so much, I just want to make it easier to sync files on the different laptops.

features

  • open source and free
  • no speed limit
  • safe, gsyncis based on your own server
  • multiple sync modes: on file changed, on file closed, on minutes.

Installation

prerequisite

  • git
  • ssh

install

./install.sh

usage

  1. we strongly recommend you to create a new account on your remote server. Use the following command to create a new user. And remember this name, we will use it to configure the sync.
	useradd <YOUR_USER_NAME>
  1. Install gsync use the install shell script. do as the prompt guides
	cd gsync
	./install
  1. To create a new sync directory. use the following command.After that, ever change in the directory will be synced to your server.
	gsync track /path/to/the/directory
  1. When you want to use in another computer, just install as step2. To see what can be synced, use the following command.
	gsync list --available
	gsync list --local # to see the repo tracked on this computer
	gsync list --all   # to print all the repos both in the remote and local
	gsync list # the short pattern of gsync --all
  1. To add a remote repo to local and track it. use the following command.
	gsync track --online  repo_name
  1. To untrack a repo
	gsync untrack --online repo_name
  1. We strongly recommend you to set gsync start on boot. use the following command.
	gsync daemon --start
	gsync daemon --stop
	gsync daemon --enable
	gsync daemon --disable
	gsync daemon --status
  1. You can see the logs to see if gsync went well.
	gsync log
  1. If you want to change your server(to-do)
	gsync reconfig

TODO

  • add GUI support
  • add github server support
    • if you have your own server
    • if you do not have your own server, use github
  • add web server like gitlab

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published