3 # Take the system down for backups and then bring it back up.
4 # Expects a single (possibly empty) argument X which is used to select
5 # a file /etc/backup/warnings.X. This file will contain lines like:
6 # T 300 "in 10 minutes"
10 # configuring the frequency of warning messages. If you call the
11 # files 'warnings.soon', 'warnings.now' and 'warnings.' then
12 # you can invoke this as:
13 # takedown lots of warnings
14 # takedown soon not so many warnings
15 # takedown now no warning at all
20 host="`hostname`" || true
25 *** WARNING - SYSTEM GOING DOWN FOR BACKUPS ***
26 $host will shut down automatically $2.
37 *** WARNING - SYSTEM GOING DOWN FOR BACKUPS ***
39 $host is shutting down IMMEDIATELY.
45 # We assume that runlevel 5 is set up suitably for doing backups
46 # (ie non-essential services turned off in an effort to get the