Suggestion for saving a backup of options.conf when doing "build create_options"

BullshMan

Verified User
Joined
Feb 13, 2013
Messages
7
Suggestion for saving a backup of options.conf when doing "build create_options"

Today I decided to see what "build create_options" could or would do for me. So I ran it and noticed it had limited options to choose from regarding versions of PHP, mysql, etc. - in that I could not choose a later version I already had installed and only was offered an older previous version. I made my choices anyway to see what the results would be...

What it did was replace the options.conf file with the options selected. Unfortunately, I didn't make a backup of options.conf (I'm still pretty new to DA) nor did I know that I should have, so I lost everything and still in the process of trying to remember the versions to "get it back the way it was".

Anyway, I would suggest that in a future version of DA is to create a backup of the file (or for any "build" commands that changes a .conf file) by creating, say, options.conf.bak.date-time-stamp or something similar, and maybe even putting them in a directory named "conf-backups".

It would save us noobs or those forgetting to make a backup a lot of pain...

Just an idea.

Chris
 
Unfortunately, I didn't make a backup of options.conf (I'm still pretty new to DA) nor did I know that I should have, so I lost everything and still in the process of trying to remember the versions to "get it back the way it was".

Don't you run a system level backup? You might have a copy in the backup.
 
Don't you run a system level backup? You might have a copy in the backup.

No, I had not done (or run) that yet...

(1) I manage my own dedicated server for my own domains and while using DA for almost 2 years, I'm not doing DA Admin things all that often

(2) Just upgraded my dedicated server and just finished moving all my domains, files and db's...
(Went from Core2Quad q9400 2.66 Ghz 4Gb to a E3-1230-V2 Ivy Bridge Xeon 3.3GHz 16GB w/ 480Gb SSD Drive for OS + 1 Tb SATA Drive and it's a world of difference!)

(3) Referring back to (1) - I'm sure I don't know 1/10th of what I should about DA and what it can do or what's available with it, I just use it and learn things as I come across them...

(4) My DA work and domains is more hobby (I spend a lot and make very little with it - lol) and I try to concentrate more on web dev than sys admin stuff...

So... I'm thinking it's time to hire someone from time to time to look over, tweak, recommend, tighten things up, etc. to take the hassle of sys admin work off my hands...

Chris
 
System level backup or not, once build create_options is called should for sure be nice that the script make a copy (if file exist) of the original one.

Regards
 
No, I had not done (or run) that yet...

(1) I manage my own dedicated server for my own domains and while using DA for almost 2 years, I'm not doing DA Admin things all that often

Hello Chris,

System Backup is a part of Directadmin and can be found in Admin Tools section. You might want to use Cron for the Backup. Just add "/usr/local/directadmin/custombuild/options.conf" into a list of files for backups. By default the backup is run weekly, that's a good start.

So... I'm thinking it's time to hire someone from time to time to look over, tweak, recommend, tighten things up, etc. to take the hassle of sys admin work off my hands...

Here on the forums, and in the thread you can find some guys including me, who gives a commerce service of server maintenance.
 
It's nice that one can put it in a backup cron, but you have to think of that and probably a lot of users don't even know that.

I completely agree with Sellerone in post #6.

So +1 for this request from me.
 
Hello,

Added to all 3 versions of CustomBuild, eg:
Code:
[root@es5 custombuild]# ./build create_options
Would you like to backup the current options.conf? (yes/no): yes
Backup created: /usr/local/directadmin/custombuild/options.conf.20130406125232.backup
John
 
Sorry for the delayed response to all (SeLLeRoNe, zEitEr, John, etc.) - I thought I had forwarded my profile's known email addr to my personal/daily used one, but either I didn't or it stopped working... It's been about two months and I've been busy and forgot all about it.

Anyway, thanks to all for your support on this and especially to John for making it happen. Nice to know I come up with a good idea now and then. lol

Next question is, now that options.conf has an option to be backed up, does this mean that any other *.conf files or *.ini files (ie, main/virtual httpd.conf, php.ini, etc.) get saved/backed up as well when prompted or when updating/upgrading versions?

Again, that would be nice. If not, perhaps add a third option "ALL" to the prompt:

Would you like to backup the current options.conf? (yes/no/all):

so it stops prompting for each and every conf/ini file to be backed up and does them all if "all" is the response (or all from that point on).

Chris
 
Back
Top