- 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.
- 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.
- git
- ssh
./install.sh
- 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>
- Install gsync use the install shell script. do as the prompt guides
cd gsync
./install
- 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
- 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
- To add a remote repo to local and track it. use the following command.
gsync track --online repo_name
- To untrack a repo
gsync untrack --online repo_name
- 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
- You can see the logs to see if gsync went well.
gsync log
- If you want to change your server(to-do)
gsync reconfig
- 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