Example of cron job for database maintenance?

Question to the group: Does anybody have an example for me for a job that automatically performs database management every night?
I have the postgresql database running on a Linux server so running cron jobs is a part of life. But I have no idea how to start a PL/pgSQL job that runs the vacuum, cluster and analyze commands. And since it might help the performance to do these commands during the night a few times a week I am looking for a way to do this.
Anybody happen to have an example of such a job? Both the cron command as well as the PL/pgSQL script I would need?
I have the postgresql database running on a Linux server so running cron jobs is a part of life. But I have no idea how to start a PL/pgSQL job that runs the vacuum, cluster and analyze commands. And since it might help the performance to do these commands during the night a few times a week I am looking for a way to do this.
Anybody happen to have an example of such a job? Both the cron command as well as the PL/pgSQL script I would need?