musq / syncs

πŸ’ Standalone bash script to sync repository remote-local

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syncs - Keep your repo up to date

Just two simple steps -

  • Pull changes from remote to local
  • Push changes from local to remote

Requirements

  • bash 4.0+
  • jq 1.4+
  • sftp

Install

Commands

  • -c | cleanup : Delete the temporary directories

  • -cc | config : Create a config file in the current directory

  • -h | help : Display help

  • -i | install : Display install instructions

  • d | diff : Display difference between remote & local

  • pl | pull : Pull changes from remote to local

  • pu | push : Push changes from local to remote

Usage

  • Begin by creating a config file in the root dircetory using command syncs -cc
  • Setup the following in the config file:
    • host
    • remote
    • ignore list
  • Run syncs to display diff between remote and local
  • See the above commands list for more info

TODO

  • Sync deleted files/directories
  • Sync individual files
  • jq installer script
  • Add verbose command

About

πŸ’ Standalone bash script to sync repository remote-local

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%