1 |
dpavlin |
1 |
This directory contains some scripts for auto-starting BackupPC |
2 |
|
|
on boot. |
3 |
|
|
|
4 |
|
|
The subdirectory src contains source versions of these scripts (before |
5 |
|
|
various absolute paths have been filled in). |
6 |
|
|
|
7 |
|
|
Here are instrcutions for different OSs. Please submit additions |
8 |
|
|
or improvements to this list! |
9 |
|
|
|
10 |
|
|
RedHat Linux: |
11 |
|
|
============ |
12 |
|
|
|
13 |
|
|
When configure.pl is run, the script linux-backuppc is created. It |
14 |
|
|
should be copied to /etc/init.d/backuppc: |
15 |
|
|
|
16 |
|
|
cp linux-backuppc /etc/init.d/backuppc |
17 |
|
|
|
18 |
|
|
After copying it, you can test it by running these commands as root: |
19 |
|
|
|
20 |
|
|
/etc/init.d/backuppc start |
21 |
|
|
/etc/init.d/backuppc status |
22 |
|
|
/etc/init.d/backuppc stop |
23 |
|
|
|
24 |
|
|
You should then run the following commands as root: |
25 |
|
|
|
26 |
|
|
chkconfig --add backuppc |
27 |
|
|
chkconfig --level 345 backuppc on |
28 |
|
|
chkconfig --list backuppc |
29 |
|
|
|
30 |
|
|
This will auto-start backuppc at run levels 3, 4 and 5. |
31 |
|
|
|
32 |
|
|
Debian Linux: |
33 |
|
|
============ |
34 |
|
|
|
35 |
|
|
When configure.pl is run, the script debian-backuppc is created. |
36 |
|
|
|
37 |
|
|
(Can a Debian user add some instructions here??) |
38 |
|
|
|
39 |
|
|
Suse Linux: |
40 |
|
|
========== |
41 |
|
|
|
42 |
|
|
When configure.pl is run, the script suse-backuppc is created. |
43 |
|
|
|
44 |
|
|
Using Suse 9.0 "chkconfig --level" doesn't work, so you should run: |
45 |
|
|
|
46 |
|
|
chkconfig backuppc 345 |
47 |
|
|
chkconfig --list backuppc |
48 |
|
|
|
49 |
|
|
Gentoo Linux: |
50 |
|
|
============ |
51 |
|
|
|
52 |
|
|
When configure.pl is run, the script gentoo-backuppc and the init conf files |
53 |
|
|
gentoo-backuppc.conf are created. They should be copied to the following |
54 |
|
|
locations: |
55 |
|
|
|
56 |
|
|
cp gentoo-backuppc /etc/init.d/backuppc |
57 |
|
|
cp gentoo-backuppc.conf /etc/conf.d/backuppc |
58 |
|
|
|
59 |
|
|
You can test it by running these commands as root: |
60 |
|
|
|
61 |
|
|
/etc/init.d/backuppc start |
62 |
|
|
/etc/init.d/backuppc status |
63 |
|
|
/etc/init.d/backuppc stop |
64 |
|
|
|
65 |
|
|
After copying these files, run the following as root to make BackupPC to |
66 |
|
|
start automatically at boot (at the default run level): |
67 |
|
|
|
68 |
|
|
rc-update add backuppc default |
69 |
|
|
|
70 |
|
|
Solaris: |
71 |
|
|
======= |
72 |
|
|
|
73 |
|
|
When configure.pl is run the shell script solaris-backuppc is created. |
74 |
|
|
This should be copied to /etc/init.d and links made in /etc/rc3.d |
75 |
|
|
and /etc/rc0.d. |
76 |
|
|
|
77 |
|
|
cp solaris-backuppc /etc/init.d/backuppc |
78 |
|
|
ln -s /etc/init.d/backuppc /etc/rc3.d/S85backuppc |
79 |
|
|
ln -s /etc/init.d/backuppc /etc/rc0.d/K85backuppc |
80 |
|
|
|
81 |
|
|
This will auto-start backuppc at run level 3 and stop it at run level 0. |
82 |
|
|
|
83 |
|
|
(Can a Solaris user please tell me if these instructions are correct?) |