updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / link-backup / link-backup.install
blobbdaccc23be627a5c0c752d17ebc6ac580a788ff1
1 # arg 1:  the new package version
2 post_install()
4   cat << _EOF
5   
6     Link-Backup is a backup utility that creates hard links between a
7     series of backed-up trees, and intelligently handles renames, moves,
8     and duplicate files without additional storage or transfer.
10     Transfer occurs over standard i/o locally or remotely between a client
11     and server instance of this script. Remote backups rely on the secure
12     remote shell program ssh. 
14     NOTE: Open /usr/bin/lb in a text editor to read the documentation.
15     
16     To install the cron job script, issue:
17         cp /usr/share/lb/lb.cron /etc/cron.daily/lb
18     
19     To install the sample exclude rules file, issue:
20         cp /usr/share/lb/lb.exclude /etc/lb.exclude
22     For additional information and a CGI script to view the backups see:
23       http://www.scottlu.com/Content/Link-Backup.html
25 _EOF
28 post_upgrade()
30   post_install
33 post_remove() {
34   cat << _EOF
36     NOTE: You will have to manually take care of a number of
37     steps such as removing the cron job script, removing the
38     exclude rules file if you have chosen to use them.
40     To remove the cron job script, issue:
41         rm /etc/cron.daily/lb
42     
43     To remove the exclude rules file, issue:
44         rm /etc/lb.exclude
46 _EOF
49 op=$1
50 shift
51 $op $*