Topic: Backup and Restore
The Backup and Restore function works on the database.
So what happens to attached documents? Are these saved in the database as well (as blobs)? If that is the case the no problem. On the other hand, if such documents are not saved in the database, then one has to backup the company folder as well. These are located in fa/company/xx where xx is a number starting at 0, 1, 2, etc.
Now I am assuming that the attachments are left in the folder fa/company/xx/attachments. And that the table xx_attachments only points to this location.
So let's say I have been backing up my companies on a regular basis and writing my backups to DVD for quite some time. What happens when a company is deleted? The folder of the company is changed.
Now all my backups point to the wrong folder. Sometimes it happens that I want to go back six months or even a year. Restoring old backups may ruin current companies.
My suggestion: For each and every new company create a new database. (see my other post elsewhere for modifying fa to do just that). But most importantly, create the company in a folder with the same name as the database. This way, all company details remain the same, throughout the lifetime of the company.
Also, when deleting a company, make sure to delete the folder AND drop the database.
What say you?