summarylogtreecommitdiffstats
path: root/link-backup.install
blob: bdaccc23be627a5c0c752d17ebc6ac580a788ff1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# arg 1:  the new package version
post_install()
{
  cat << _EOF
  
    Link-Backup is a backup utility that creates hard links between a
    series of backed-up trees, and intelligently handles renames, moves,
    and duplicate files without additional storage or transfer.

    Transfer occurs over standard i/o locally or remotely between a client
    and server instance of this script. Remote backups rely on the secure
    remote shell program ssh. 

    NOTE: Open /usr/bin/lb in a text editor to read the documentation.
    
    To install the cron job script, issue:
        cp /usr/share/lb/lb.cron /etc/cron.daily/lb
    
    To install the sample exclude rules file, issue:
        cp /usr/share/lb/lb.exclude /etc/lb.exclude

    For additional information and a CGI script to view the backups see:
      http://www.scottlu.com/Content/Link-Backup.html

_EOF
}

post_upgrade()
{
  post_install
}

post_remove() {
  cat << _EOF

    NOTE: You will have to manually take care of a number of
    steps such as removing the cron job script, removing the
    exclude rules file if you have chosen to use them.

    To remove the cron job script, issue:
        rm /etc/cron.daily/lb
    
    To remove the exclude rules file, issue:
        rm /etc/lb.exclude

_EOF
}

op=$1
shift
$op $*