Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Oct 2004 10:30:45 -0400 (EDT)
From:      Steven J Corso <freebsd@netdtw.com>
To:        freebsd-questions@freebsd.org
Subject:   Backing up a FreeBSD system
Message-ID:  <20041018102125.N30190-100000@maily.netdtw.com>

next in thread | raw e-mail | index | archive | help


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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041018102125.N30190-100000>