Does anyone know of a program that can make automatic scheduled backups of sites built with PHP or other server side languages?

basically the program would work thus:

it acts like an ftp client, so i would plug in the FTP info for a given domain,
i would then set it so at 5pm every friday it logs into the ftp and downloads all the files to a specified location on my computer.

Does anybody know if a program like this exists?