Backups progress 2
Right now the main thing i’m working on is how a backup of a reseller/domain is done recursing through the users and domains to be backed up. At the moment a reseller backup will provide a choice of domains to backup but all users under those domains will be backed up so backing up the domains and users is part of this. Also how various hooks work together to build the backup. A backup manager function is in charge which calls the relevant hooks.
I’m beginning to realise how useful some of the techniques of last years computer science lectures are in this. E.g. splitting things into functions where code gets too complex and the manjana(sp?) principles like if you need a specific function to do something write the empty function and write the rest as if that function exists, then work on the function, allowing you to skip thinking about the specifics for the moment…
Also i can’t imagine my life without a text editor like Crimson editor
it is without a doubt the best and most functional editor i’ve ever found. Most useful are things like opening and saving files to a remote ftp server so i can save direct to my test machine and the ability to have multiple files open in tabs, also indenting, saving a backup file every time you save and conversion to unix file types are great. It has a huge number of features and i would recommend it to anyone.
I found the project features useful when manually editing Visual Basic form files for my a level computing project
For anyone not developing on windows i would recommend something called CUTE which is an awesome text editor….although you’ll probaly have to compile it its worth the trouble. Or there’s always GEdit.
EdG
Additional..
The use of functions allows you to update those functions later with improved versions, rather than searching about for things.
At the moment i am working on moving the whole thing over to being hook based, this is made a lot easier by splitting the code up so that one single backup can be tested alone before recursing through domains and users to back up in addition to a domain or whatever.
Also the webcp logo doesn’t show up at the top left of this page for some reason and there are errors on the manual.
Comment by edg — July 30, 2007 @ 11:27 am