Solved [Solved] Disable pkgng.db daily backup. How to do it?

  • Thread starter Thread starter Hanky-panky
  • Start date Start date
H

Hanky-panky

Guest
This really huge file resides on /var/backups.

I don't think I need a backup of it, I want to take care myself of the backup when I need one.

How can I elegantly disable this backup?

I know with pkgng/usr/local/etc/periodic/daily/411.pkg-backup backs up the pkgng db into /var/backups/pkgng.db

Probably this means I should remove the "-x" attributes to 220.backup-pkgdb file to turn it off and do blocking the creation of /var/backups/pkgng.db file, but this sound totally not elegant to me.

Is there a switch in some configuration file to do this, something more clean and effective?
 
Re: Disable pkgng.db daily backup. How to do it with eleganc

Just put daily_backup_pkgng_enable=NO in /etc/periodic.conf
 
Re: Disable pkgng.db daily backup. How to do it with eleganc

For future reference, all the default knobs are in /etc/defaults/periodic.conf. You can override them be setting what you want in either /etc/periodic.conf or /etc/periodic.conf.local by creating or changing one of those files. Packages you install tend to vary whether they enable themselves but in this case take a look at the 411.pkg-back and you'll see where it sets itself to YES by default. What was provided above would override that.
 
Back
Top