cd /usr/local
git clone https://github.com/chrigu99/FolderBackupToSamba.git
ln -s /usr/local/FolderBackupToSamba/FolderBackupToSamba.sh /usr/local/bin
cp /usr/local/FolderBackupToSamba/FolderBackupToSamba.cfg /usr/local/etc
vim /usr/local/etc/FolderBackupToSamba.cfg
And enter your settings. That's all.
Enjoy.