In this longer than expected video, I go through a simple bash script that backs up a directory.
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.