git: build: add "make backupworld" and "make restoreworld" functionality

John Marino marino at
Sun Feb 17 04:43:50 PST 2013

commit 7bee86c0ec635f688e37b15e7aa203a961ec4c84
Author: John Marino <draco at>
Date:   Sun Feb 17 12:05:18 2013 +0100

    build: add "make backupworld" and "make restoreworld" functionality
    Three new make.conf parameters have been defined:
      * WORLD_BACKUP - location to store backed up world binaries
                       default = /var/backups/world_binaries
      * DAYS_BACKUP  - The number of days since the last backup that must pass
                       before "make installworld" fails with an error
                       default = 28
      * NO_BACKUP    - defining this will prevent backup checks.
    The build functionality has been changed.  Prior to "make installworld",
    the makefile will check to see if system binaries have been previously
    backed up.  If they haven't, "make installworld" will fail to execute
    explaining that the system should be backed up.  If a previous backup
    does exist, but it's older than the specified number of days, "make
    installworld" will fail explaining the backup needs to be refreshed.
    Passing NO_BACKUP through the command line or make.conf will inhibit
    these checks.
    in make.conf man page too.

Summary of changes:
 Makefile                   |  1 +
 Makefile.inc1              | 63 ++++++++++++++++++++++++++++++++++++++++++++++
 share/man/man5/make.conf.5 | 46 ++++++++++++++++++++++++++++++++-
 3 files changed, 109 insertions(+), 1 deletion(-)

DragonFly BSD source repository

More information about the Commits mailing list