Scripting neophyte needs file manipulation assistance

I need to write two shell scripts for an rsync backup solution. The first script will copy all backed up files into a folder named after the original folder, plus a date stamp (so e.g. if the original folder name is 'foo' and is backed up on the 10th of September, then the backup folder will be 'foo0910'.)

The second script will monitor the number of backed up folders created, and will automatically delete the oldest folder after seven are created. Thus, there will always be seven backups, with the oldest always deleted to make room for the newest.

While I know it's a simple task to write both scripts (or even combine them as one), I'm not very good at scripting yet and am looking for a little advice on how best to write the script. These scripts will be running on our rsync server, so I only have the most basic of commands to work with; the commands I have at my disposal are dd, cp, ls, mkdir, pwd, chmod, chgrp, ln, mv, rm, rmdir, touch, tail, groups, id, passwd and quota