How would i go about scripting in some functionality so as to allow the user of a cms/e-commerce site to backup both the current database structure and data and also the entire contents of the websites root folder, bundle all this into a zip file or other archive for download by the end user.
The main purpose of this is to remove the need for me as the developer to do this and to simplify the backup process...
Any help or direction to help would be great
TIA