by Ken Task.
Think you want a site backup which consist of an archive of the moodle code directory (especially the config.php file), the moodle data directory, and an sql dump of the database for moodle.
http://docs.moodle.org/22/en/Site_Backup_for_Low-tech_Users
or
http://docs.moodle.org/25/en/Site_backup
If your moodle version is <-2.x (ie, 1.9.x) site backups are the same.
'spirit of sharing', Ken