summarylogtreecommitdiffstats
path: root/safekeep.install
blob: ff057bb940fc205ff9febe922839d42d200fe3ad (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
post_install() {
  cat << _EOF

	NOTE: You will have to manually take care of a number of
	steps such as installing the cron job script, creating the
	safekeep user, and generating and deploying ssh keys on
	the backup server machine.

	To create a new user called "safekeep," issue:
		useradd -g users -m -d /var/lib/safekeep -s /sbin/nologin
			-c "Used by SafeKeep to run and store backups." safekeep 

	To install the cron job script, issue:
		cp /usr/share/safekeep/safekeep.cron /etc/cron.daily/safekeep
	
	Please see the following link for a quick setup example:
		http://safekeep.sourceforge.net/documentation.shtml

_EOF
}

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
	safekeep user and group, and removing ssh keys.

	To remove the user called "safekeep," issue:
		userdel -r safekeep

	To remove the user called "safekeep," issue:
		groupdel safekeep
		
	To remove the cron job script, issue:
		rm /etc/cron.daily/safekeep

_EOF
}