From nobody@FreeBSD.org  Mon Apr 26 12:45:31 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0611D1065680
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <eitanadlerlist@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] allow users to specify location for backups in default cron scripts
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>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:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 26 12:50:01 UTC 2010
>Closed-Date:    Sat Mar 26 01:17:43 UTC 2011
>Last-Modified:  Sat Mar 26 01:17:43 UTC 2011
>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:
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Sat Mar 26 01:16:35 UTC 2011 
State-Changed-Why:  

It is not only conceivable, but likely that users may wish 
to store backups for different items in different locations. 

But thanks for your interest in making FreeBSD better. :) 

Doug 


Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Sat Mar 26 01:16:35 UTC 2011 
Responsible-Changed-Why:  

I'm swinging the axe. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146064 
>Unformatted:
