Installation

From rdiffWeb

Jump to: navigation, search

Contents

[edit] Prerequisites

Install pysqlite (if not already installed). For instance, in Ubuntu or Debian-derivatives:
$ sudo apt-get install python-pysqlite2 libsqlite3-dev
Test pysqlite thus:
$ python -c "from pysqlite2 import test;test.test()"
You should see dots and dashes and a message that a load of tests ran. This means it is successful.

Install CherryPy [1] 3.x for 0.6x and higher version, or 2.x for 0.5 and earlier version. For instance, after downloading CherryPy-3.1.2.tar.gz:
$ tar zxf CherryPy-3.1.2.tar.gz
$ cd CherryPy-3.1.2
$ sudo python setup.py install

[edit] Install rdiffWeb

$ tar zxf rdiffWeb-0.6.3.tar.gz
$ cd rdiffWeb-0.6.3
$ python setup.py build
$ sudo python setup.py install

[edit] Configure rdiffWeb

Due to some issues with rdiffWeb auto configuring of files will result in two issues. Therefore it is recommended to manually configure rdiffWeb until the issues are resolved.
In order to create the first (administrator) account, with a backup directory, run:
$ rdiff-web-config
Additional users can be configured with the same command or via the web interface

Create a file to configure the web interface:
$ vim /etc/rdiffweb/rdw.conf
Enter at least the following:
ServerHost=0.0.0.0
ServerPort=8080

Entering 0.0.0.0 allows you to access the web interface from an other computer at port 8080. Naturally the port can be changed if necessary. This creates a basic configuration can be tweaked. Auto configuration of rdw.conf will result in 'ServerName' instead of 'ServerHost'

Open the file rdiff-web
$ vim /etc/init.d/rdiff-web
and go to line 38 and add '-d' at the end of line, thus:
--background > /dev/null 2>&1 -d
Without the debug switch the web interface won't appear.

[edit] Start rdiffWeb

$ /etc/init.d/rdiff-web start
From now on you can access rdiffWeb from your browser (at http://localhost:8080, if necessary replace localhost by the ip address of the server)

[edit] Automatically start rdiffWeb on system startup

If we start the server/machine in graphic mode then we are probably using runlevel 5:
ln -s /etc/init.d/rdiff-web /etc/rc5.d/S50rdiff-web

On Ubuntu and other Debian-derivatives, instead do
update-rc.d rdiff-web defaults

Personal tools