diff --git a/README.md b/README.md index 13999b5..50b03b6 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ It declares three volumes : * `/etc/backuppc`: stores the BackupPC configuration, in particular config.pl and hosts configuration. * `/home/backuppc`: home of the backuppc user, running your BackucPC instance, and contains in particular a .ssh directory with the SSH keys used to make backups through SSH protocol (see [SSH Keys](#ssh-keys)). -* `/data/backuppc`: contains the BackupPC pool, so your backups themselves. +* `/data/backuppc`: contains the BackupPC pool, so your backups themselves, and the logs. It is advised to mount these volumes on the host in order to persist your backups. Assuming a host directory `/var/docker-data/backuppc{etc,home,data}`, mounted on a big filesystem, you can do for instance : @@ -199,10 +199,11 @@ This sub-section is under Upgrading section because the process is very similar Because configure.pl script is called on first run of your container instance, you can dockerise and upgrade to v4.X a pre-existing BackupPC v3.x installation. -Do to so, let's assume that your BackupPC v3.x installed on your host: +To do so, let's assume that your BackupPC v3.x installed on your host: * has its configuration in `/etc/backuppc` * has its backup pool in `/var/lib/backuppc` * has the user home running your BackupPC (typically backuppc) in `/home/backuppc` +* has its log files in `/var/log/backuppc` Check UUID/GUID of your backuppc user on host. If they are not 1000/1000, you will need to put environment variables to customize theses values in the container instance (see [POSIX rights](#posix-rights)). @@ -215,6 +216,7 @@ docker run \ --volume /etc/backuppc:/etc/backuppc \ --volume /home/backuppc:/home/backuppc \ --volume /var/lib/backuppc:/data/backuppc \ + --volume /var/log/backuppc:/data/backuppc/log \ adferrand/backuppc ``` diff --git a/VERSION b/VERSION index 1ae48b2..d1dc518 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.1.3-3 \ No newline at end of file +4.1.3-4 \ No newline at end of file diff --git a/files/entrypoint.sh b/files/entrypoint.sh index cc80440..7f314cf 100755 --- a/files/entrypoint.sh +++ b/files/entrypoint.sh @@ -37,6 +37,7 @@ if [ -f /firstrun ]; then --config-dir /etc/backuppc \ --cgi-dir /var/www/cgi-bin/BackupPC \ --data-dir /data/backuppc \ + --log-dir /data/backuppc/log \ --hostname localhost \ --html-dir /var/www/html/BackupPC \ --html-dir-url /BackupPC \