@Daniel-Boese Something along the lines of should do:

#!/bin/sh while true; do datetime=$(date +%d-%m-%y--%H-%M) mkdir -p $datetime if [ $? -eq 0 ]; then cd $datetime wget http://whatever.url/some.file cd .. fi sleep 1h done

Note that it doesn't do any error-checking or anything. Add error-checking and whatnot, however it suits your needs.