README.md 1.15 KB
Newer Older
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
Manage for backup from a docker container
=========================================

Based on https://phpbu.de/

You can use this container to build your own, check the documentation on phpbu.de.

# Build your own

You can start with this ```Dockerfile```:

    FROM ttree/phpbu:latest

    ADD phpbu.xml /phpbu.xml

# Simple run

Here a simple example to use the container to backup a local directory and a database. The backup will be stored in the ```destination``` director of the working directory.

    docker run \
      --link youdbcontainer:mysql \
      -v /data:/source \
      -v $(pwd)/destination:/destination \
      -e "CRYPT_PASSWORD=h33lo" \
      --rm -it phpbu_app

PHPBU support exporting the backup to S3, Dropbox, ... so you don't need to touch the disk of the host machine. You can also mount volumes from other containers, ... Feel free to be creative ;)

Acknowledgments
---------------

Development sponsored by [ttree ltd - neos solution provider](http://ttree.ch).

We try our best to craft this package with a lots of love, we are open to
sponsoring, support request, ... just contact us.

License
-------

Licensed under MIT, see [LICENSE](LICENSE)