Backup projects - Best practice?

Hi

What is best practice for backing up my projects?
Is the root-files and the www directory enough or do I need to backup the whole folder? (which in some cases is really big)

regards