Commit af09e97b authored by Dominique Feyer's avatar Dominique Feyer
Browse files

TASK: Use ttree/flowapp:7.1-cron as base image

parent c261ae4f
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
FROM php:7.1.2-alpine
FROM ttree/flowapp:7.1-cron

MAINTAINER Dominique Feyer <dfeyer@ttree.ch>

LICENSE

0 → 100644
+21 −0
Original line number Diff line number Diff line
The MIT License (MIT)

Copyright (c) 2015 Dominique Feyer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+3 −0
Original line number Diff line number Diff line
include ./Makefile.base

build:   ##@base build images in test-stack
	$(DOCKER_COMPOSE) build --pull
+0 −3
Original line number Diff line number Diff line
@@ -6,9 +6,6 @@ DOCKER_HOST ?= localhost

default: help

build:   ##@base build images in test-stack
	$(DOCKER_COMPOSE) build --pull

up:      ##@base start stack
	$(DOCKER_COMPOSE) up -d

README.md

0 → 100644
+40 −0
Original line number Diff line number Diff line
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)
Loading