I don't want to copy it using scp, that means a needless extra transfer. A local copy on the remote machine should be much better.
This makes the per-month folders.
Code:
targetFolderFormat=$(date +"%Y-%m")