From owner-freebsd-questions@FreeBSD.ORG Fri May 30 02:52:42 2014 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 324468DB for ; Fri, 30 May 2014 02:52:42 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EA8DD242E for ; Fri, 30 May 2014 02:52:40 +0000 (UTC) Received: from r56.edvax.de (port-92-195-4-63.dynamic.qsc.de [92.195.4.63]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 870FC24DC0; Fri, 30 May 2014 04:52:37 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s4U2qbEB005237; Fri, 30 May 2014 04:52:37 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 30 May 2014 04:52:37 +0200 From: Polytropon To: Sergei G Subject: Re: What is recommended admin / backup script location? Message-Id: <20140530045237.84de6b1e.freebsd@edvax.de> In-Reply-To: <5387E917.5040404@gmail.com> References: <5387E917.5040404@gmail.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2014 02:52:42 -0000 On Thu, 29 May 2014 19:12:39 -0700, Sergei G wrote: > What would be an appropriate location for backup and other admin level > scripts? The system automatically backups some files to /var/backups. See "man hier" for details. > I assume cron will be used to schedule execution of backup script, > unless there is a better solution. The scripts 200.backup-passwd, 210.backup-aliases and 220.backup-pkgdb in /etc/periodic/daily will perform such tasks. You could add your own scripts and also add a custom location for backups, for example an external or networked drive. Those scripts would probably be go to the /usr/local/etc/periodic subtree, or /opt/periodic, if you want to employ and (ab)use a Solaris-ism. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...