Using rsync to Replace Dropbox

Using rsync and entr to sync Folders

rsync is a great for syncing two locations incrementally ie, only the changes part will be sent This reduces the transferred data . entr is a tool for executing a command when a file is modified

while true ;do \
    sleep 2s ; \
    find . | entr -d rsync -avz <Source> <Detination>;\
    done

while true : Executes the loop forever sleep 2s : sleep for 2 sec before executing the next command find . : List all the files in the current folder entr -d : Look for file creation in directory rsync -a : Archive , -v : verbose ,-z : Compress

Footnote

1.entrproject