mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
Merge branch 'master' into 4
This commit is contained in:
commit
8dd18f1fc8
@ -11,7 +11,7 @@ RUN apk --no-cache add \
|
|||||||
# Install backuppc build dependencies
|
# Install backuppc build dependencies
|
||||||
gcc g++ autoconf automake make git patch perl perl-dev perl-cgi expat expat-dev curl wget \
|
gcc g++ autoconf automake make git patch perl perl-dev perl-cgi expat expat-dev curl wget \
|
||||||
# Install backuppc runtime dependencies
|
# Install backuppc runtime dependencies
|
||||||
supervisor rsync samba-client iputils openssh openssl rrdtool msmtp lighttpd lighttpd-mod_auth gzip apache2-utils \
|
supervisor rsync samba-client iputils openssh openssl rrdtool msmtp lighttpd lighttpd-mod_auth gzip apache2-utils tzdata \
|
||||||
# Compile and install needed perl modules
|
# Compile and install needed perl modules
|
||||||
&& cpan App::cpanminus \
|
&& cpan App::cpanminus \
|
||||||
&& cpanm -n Archive::Zip XML::RSS File::Listing \
|
&& cpanm -n Archive::Zip XML::RSS File::Listing \
|
||||||
|
31
README.md
31
README.md
@ -1,5 +1,5 @@
|
|||||||
# adferrand/backuppc
|
# adferrand/backuppc
|
||||||
![](https://img.shields.io/badge/tags-4%20latest-lightgrey.svg) [![](https://images.microbadger.com/badges/version/adferrand/backuppc:4.1.3-4.svg) ![](https://images.microbadger.com/badges/image/adferrand/backuppc:4.1.3-4.svg)](https://microbadger.com/images/adferrand/backuppc:4.1.3-4)
|
![](https://img.shields.io/badge/tags-4%20latest-lightgrey.svg) [![](https://images.microbadger.com/badges/version/adferrand/backuppc:4.1.3-6.svg) ![](https://images.microbadger.com/badges/image/adferrand/backuppc:4.1.3-6.svg)](https://microbadger.com/images/adferrand/backuppc:4.1.3-6)<br/>
|
||||||
![](https://img.shields.io/badge/tags-3-lightgrey.svg) [![](https://images.microbadger.com/badges/version/adferrand/backuppc:3.3.2.svg) ![](https://images.microbadger.com/badges/image/adferrand/backuppc:3.3.2.svg)](https://microbadger.com/images/adferrand/backuppc:3.3.2)
|
![](https://img.shields.io/badge/tags-3-lightgrey.svg) [![](https://images.microbadger.com/badges/version/adferrand/backuppc:3.3.2.svg) ![](https://images.microbadger.com/badges/image/adferrand/backuppc:3.3.2.svg)](https://microbadger.com/images/adferrand/backuppc:3.3.2)
|
||||||
|
|
||||||
* [Introduction](#introduction)
|
* [Introduction](#introduction)
|
||||||
@ -17,7 +17,9 @@
|
|||||||
* [Advanced SMTP configuration](#advanced-smtp-configuration)
|
* [Advanced SMTP configuration](#advanced-smtp-configuration)
|
||||||
* [Upgrading](#upgrading)
|
* [Upgrading](#upgrading)
|
||||||
* [Dockerising an existing BackupPC v3.x](#dockerising-an-existing-backuppc-v3x)
|
* [Dockerising an existing BackupPC v3.x](#dockerising-an-existing-backuppc-v3x)
|
||||||
* [Shell access](#shell-access)
|
* [Miscellaneous](#miscellaneous)
|
||||||
|
* [Timezone](#timezone)
|
||||||
|
* [Shell access](#shell-access)
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
@ -222,6 +224,31 @@ docker run \
|
|||||||
|
|
||||||
The configure.pl script will detect a v3.x version under /etc/backuppc, and will run appropriate upgrade operations (in particular enabling legacy v3.x pool to access it from a BackupPC v4.x).
|
The configure.pl script will detect a v3.x version under /etc/backuppc, and will run appropriate upgrade operations (in particular enabling legacy v3.x pool to access it from a BackupPC v4.x).
|
||||||
|
|
||||||
|
## Miscellaneous
|
||||||
|
|
||||||
|
### Timezone
|
||||||
|
|
||||||
|
By default the timezone of this docker is set to UTC. To modify it, you can specify a tzdata-compatible timezone in the environment variable `TZ`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# For Paris time (including daylight)
|
||||||
|
docker run \
|
||||||
|
--name backuppc \
|
||||||
|
--publish 80:8080 \
|
||||||
|
--env TZ=Europe/Paris \
|
||||||
|
adferrand/backuppc
|
||||||
|
```
|
||||||
|
|
||||||
|
Alternatively, you can sync the container timezone to its host by mounting the host file `/etc/localtime` to the container path `/etc/localtime`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run \
|
||||||
|
--name backuppc \
|
||||||
|
--publish 80:8080 \
|
||||||
|
--mount /etc/localtime:/etc/localtime:ro \
|
||||||
|
adferrand/backuppc
|
||||||
|
```
|
||||||
|
|
||||||
## Shell access
|
## Shell access
|
||||||
|
|
||||||
For debugging and maintenance purpose, you may need to start a shell in your running container. With a Docker of version 1.3.0 or higher, you can do:
|
For debugging and maintenance purpose, you may need to start a shell in your running container. With a Docker of version 1.3.0 or higher, you can do:
|
||||||
|
@ -5,6 +5,11 @@ if [ -f /firstrun ]; then
|
|||||||
echo 'First run of the container. BackupPC will be installed.'
|
echo 'First run of the container. BackupPC will be installed.'
|
||||||
echo 'If exist, configuration and data will be reused and upgraded as needed.'
|
echo 'If exist, configuration and data will be reused and upgraded as needed.'
|
||||||
|
|
||||||
|
# Configure timezone if needed
|
||||||
|
if [ -z "$TZ" ]; then
|
||||||
|
cp /usr/share/zoneinfo/$TZ /etc/localtime
|
||||||
|
fi
|
||||||
|
|
||||||
# Create backuppc user
|
# Create backuppc user
|
||||||
addgroup -S -g ${BACKUPPC_GUID:-1000} backuppc
|
addgroup -S -g ${BACKUPPC_GUID:-1000} backuppc
|
||||||
adduser -D -S -h /home/backuppc -G backuppc -u ${BACKUPPC_UUID:-1000} backuppc
|
adduser -D -S -h /home/backuppc -G backuppc -u ${BACKUPPC_UUID:-1000} backuppc
|
||||||
|
Loading…
Reference in New Issue
Block a user