by Tim Hunt.
You still need to backup the same three thigns: moodle code folder, moodledata and database.
Within moodledata, the only bits you can safely leave out are the temp and cache folders.