Backup file...

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
djmuk
Posts: 14
Joined: Tue Mar 23, 2010 8:27 am

Backup file...

Post by djmuk »

Not sure if this is a 'bug' or not...

using 1.1.8

When I look at the config backup file (generated via the web interface) in winrar it includes the /etc/rc.d directory. Unfortunately all the files in there are shown as 0 bytes as they are symlinks to files in /etc/init.d ... Should it be backing up the /etc/init.d directory as well?

David

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: Backup file...

Post by Eric »

That's not a bug, that's the correct behavior. The actual scripts are in /etc/init.d, and it's possible something there will change between versions. The links in /etc/rc.d determine which init scripts are enabled. Therefore it makes sense to backup a list of what utilites are enabled, but not the scripts themselves.

djmuk
Posts: 14
Joined: Tue Mar 23, 2010 8:27 am

Re: Backup file...

Post by djmuk »

Eric

That makes sense. My concern was that the location had changed...

In that case it is also logical to put any 'custom' scripts in /etc/rc.d rather than /etc/init.d ... Not sure if this is / should be documented?

David

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: Backup file...

Post by Eric »

The location will not change. All init scripts go in /etc/init.d.

Custom scripts really aren't covered by the backup mechanism. They too should really go in /etc/init.d, since if they went in /etc/rc.d they could not be disabled. I guess if you want to be sure they are always active and backed up putting them in /etc/rc.d might be a hack to do this... but it is just that, a hack.

Post Reply