File: postrun-warn-user

package info (click to toggle)
hdup 2.0.14-5.2
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 628 kB
  • sloc: ansic: 3,528; sh: 3,287; perl: 218; makefile: 134
file content (24 lines) | stat: -rwxr-xr-x 628 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

# I'm just burned by a rather bad crash and even I didn't
# have my backups correctly setup. So I lost data :-(
# Warn the user after a monthly and weekly to move
# the backups to other systems and/or to CD/DVD
# Miek, 16 Sept 2005.

# one arg
scheme=$1

if [ -z $scheme ]; then exit; fi

if [ $scheme = "weekly" ]; then
        echo "** Don't forgot to write this backup to a **
**          more permanent storage        **"
        exit
fi

if [ $scheme = "monthly" ]; then
        echo "*** IT IS RECOMMENDED THAT YOU WRITE YOUR PREVIOUS ***
***       MONTH DUMP TO PERMANENT STORAGE          ***"
        exit
fi