From owner-freebsd-questions@FreeBSD.ORG Mon Oct 18 14:30:46 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 930EF16A4CE for ; Mon, 18 Oct 2004 14:30:46 +0000 (GMT) Received: from maily.netdtw.com (maily.netdtw.com [192.160.70.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 167E243D41 for ; Mon, 18 Oct 2004 14:30:46 +0000 (GMT) (envelope-from freebsd@netdtw.com) Received: from maily.netdtw.com (localhost [127.0.0.1]) by maily.netdtw.com (8.12.8/8.12.5) with ESMTP id i9IEUjol030234 for ; Mon, 18 Oct 2004 10:30:45 -0400 (EDT) (envelope-from freebsd@maily.netdtw.com) Received: from localhost (freebsd@localhost)i9IEUjeo030231 for ; Mon, 18 Oct 2004 10:30:45 -0400 (EDT) Date: Mon, 18 Oct 2004 10:30:45 -0400 (EDT) From: Steven J Corso To: freebsd-questions@freebsd.org Message-ID: <20041018102125.N30190-100000@maily.netdtw.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Backing up a FreeBSD system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 14:30:46 -0000 I would like to utilize dump to back up my filesystems on a FreeBSD machine. I happen to be utilizing FreeBSD current at this time. I would like to do this from single user state on the system. I have made this work, and the restore as well to another disk drive, which is great. However, I would like to have the system check and see if I want this to happen at a specific time, and do the backup, and then return to multi-user state. I think I did this a long time ago under BSD/OS. I did it something like this: 1. Set a cron job to check for the existance of a file (like want.backup). 2. If no want.backup, do nothing 3. If want.backup, then "init 1", backups, reboot. There are a couple of things I can not figure out: 1. How do you get a FreeBSD system into sigle user state and start a shell without the prompt from init? 2. When the system goes into single user state how do you get it to execute a script? Any help would be greatly appreciated. Thank you, Steve