From owner-freebsd-bugs@FreeBSD.ORG Mon Apr 26 12:50:02 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E3131065672 for ; Mon, 26 Apr 2010 12:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 21A558FC1F for ; Mon, 26 Apr 2010 12:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o3QCo1xQ094965 for ; Mon, 26 Apr 2010 12:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3QCo1fw094964; Mon, 26 Apr 2010 12:50:01 GMT (envelope-from gnats) Resent-Date: Mon, 26 Apr 2010 12:50:01 GMT Resent-Message-Id: <201004261250.o3QCo1fw094964@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eitan Adler Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0611D1065680 for ; Mon, 26 Apr 2010 12:45:31 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id E8FA18FC08 for ; Mon, 26 Apr 2010 12:45:30 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o3QCjUqi030178 for ; Mon, 26 Apr 2010 12:45:30 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o3QCjUbu030177; Mon, 26 Apr 2010 12:45:30 GMT (envelope-from nobody) Message-Id: <201004261245.o3QCjUbu030177@www.freebsd.org> Date: Mon, 26 Apr 2010 12:45:30 GMT From: Eitan Adler To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: conf/146064: [patch] allow users to specify location for backups in default cron scripts X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2010 12:50:02 -0000 >Number: 146064 >Category: conf >Synopsis: [patch] allow users to specify location for backups in default cron scripts >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Apr 26 12:50:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Eitan Adler >Release: FreeBSD 8.0 >Organization: >Environment: >Description: Discussion starts at http://lists.freebsd.org/pipermail/freebsd-hackers/2010-April/031663.html >How-To-Repeat: >Fix: Index: 200.backup-passwd =================================================================== --- 200.backup-passwd (revision 207071) +++ 200.backup-passwd (working copy) @@ -24,7 +24,7 @@ "doesn't exist" rc=2 else - bak=/var/backups + bak="$backup_location" rc=0 echo "" Index: 210.backup-aliases =================================================================== --- 210.backup-aliases (revision 207071) +++ 210.backup-aliases (working copy) @@ -19,7 +19,7 @@ "/etc/mail/aliases doesn't exist" rc=2 else - bak=/var/backups + bak="$backup_location" rc=0 echo "" Index: ../../defaults/periodic.conf =================================================================== --- ../../defaults/periodic.conf (revision 207071) +++ ../../defaults/periodic.conf (working copy) @@ -22,6 +22,8 @@ # periodic script dirs local_periodic="/usr/local/etc/periodic" +# General options +backup_location="/var/backups" # Daily options >Release-Note: >Audit-Trail: >Unformatted: