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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
|
#################################################################################
# Systemd configuration to auto-start BackupPC
#################################################################################
This directory contains some scripts for auto-starting BackupPC on boot.
The preferred method is using systemd.
To install the systemd service:
- check/modify the configuration in the backuppc.service file in this directory.
Uncomment the Group= line if your group name is the same as the BackupPC user
(or change the group name as necessary).
- as root, run these commands:
cp backuppc.service /etc/systemd/system
systemctl daemon-reload
systemctl enable backuppc.service # should create a link in /etc/systemd/system/multi-user.target.wants/backuppc.service
- to start/stop or get status, run these commands:
systemctl start backuppc.service
systemctl status backuppc.service
systemctl stop backuppc.service
Also, be sure to remove any old /etc/init.d/BackupPC or /etc/init.d/backuppc scripts.
#################################################################################
# Old style /etc/init.d scripts
#################################################################################
The rest of this README file describes old init.d scripts that can be
used in place of the systemd scripts described above.
The subdirectory src contains source versions of these scripts (before
various absolute paths have been filled in), and the subdirectory init.d
contains updated scripts with your settings merged in.
Here are init.d instrcutions for different OSs. Please submit additions
or improvements to this list!
RedHat Linux:
============
When configure.pl is run, the script init.d/linux-backuppc is created. It
should be copied to /etc/init.d/backuppc:
cp linux-backuppc /etc/init.d/backuppc
After copying it, you can test it by running these commands as root:
/etc/init.d/backuppc start
/etc/init.d/backuppc status
/etc/init.d/backuppc stop
You should then run the following commands as root:
chkconfig --add backuppc
chkconfig --level 345 backuppc on
chkconfig --list backuppc
This will auto-start backuppc at run levels 3, 4 and 5.
Debian Linux:
============
When configure.pl is run, the script init.d/debian-backuppc is created.
Copy the debian startup script:
cp debian-backuppc /etc/init.d/backuppc
Run the following command to install in rc.d:
update-rc.d backuppc defaults
Set the correct init.d rights:
chmod 755 /etc/init.d/backuppc
Usage: /etc/init.d/backuppc {start|stop|restart|reload}
Suse Linux:
==========
When configure.pl is run, the script init.d/suse-backuppc is created.
Using Suse 9.0 "chkconfig --level" doesn't work, so you should run:
chkconfig backuppc 345
chkconfig --list backuppc
Gentoo Linux:
============
When configure.pl is run, the script init.d/gentoo-backuppc and the init
conf files gentoo-backuppc.conf are created. They should be copied to
the following locations:
cp gentoo-backuppc /etc/init.d/backuppc
cp gentoo-backuppc.conf /etc/conf.d/backuppc
You can test it by running these commands as root:
/etc/init.d/backuppc start
/etc/init.d/backuppc status
/etc/init.d/backuppc stop
After copying these files, run the following as root to make BackupPC to
start automatically at boot (at the default run level):
rc-update add backuppc default
FreeBSD:
=======
When configure.pl is run, the script init.d/freebsd-backuppc is created.
An alternative more compact script is freebsd-backuppc2, submitted
by Dan Niles.
Copy one of these scripts to /usr/local/etc/rc.d/backuppc and make
execuatble.
Add the following line to /etc/rc.conf to enable BackupPC:
backuppc_enable=(bool): Set to "NO" by default.
Set it to "YES" to enable BackupPC.
Example:
backuppc_enable="YES"
The script accepts: start, stop, restart, reload, status
Slackware:
=========
When configure.pl is run, the script init.d/slackware-backuppc is created.
Install it by running these commands as root:
cp slackware-backuppc /etc/rc.d/rc.backuppc
chmod 755 /etc/rc.d/rc.backuppc
then use an editor to add /etc/rc.d/rc.backuppc to /etc/rc.d/rc.local
Solaris:
=======
When configure.pl is run the shell script init.d/solaris-backuppc is created.
This should be copied to /etc/init.d and links made in /etc/rc3.d
and /etc/rc0.d.
cp solaris-backuppc /etc/init.d/backuppc
ln -s /etc/init.d/backuppc /etc/rc3.d/S85backuppc
ln -s /etc/init.d/backuppc /etc/rc0.d/K85backuppc
This will auto-start backuppc at run level 3 and stop it at run level 0.
(Can a Solaris user please tell me if these instructions are correct?)
|