Golang News http://golangnews.com Jobs, Code, Videos and News for Go hackers - everything about the go programming language Mon, 12 Nov 2018 10:38:00 +0000 Backer - docker container backup. #docker #golang #cobra <h2>Motivation</h2> <p>Think about a small company that have to build fast and easy realiable services for a intranet (eg. gitlab, jenkins ...) The fastest way is to deploy this services as a docker containers and manage them for example with a reverse proxy... Taking care about the backup system is an heavvy work, I ended up building this small utility. At this time I only need to do local backups for the active and running containers and their mounted volumes.</p> <h2>info command</h2> <p>I'm not sure about the <code>info</code> command, if it's worth and useful i will do it right :)</p> <h2>Usage</h2><pre><code> backer [type] [flags] backer [command] Available Commands: help Help about any command info retrieve informations about backups previously done list list current available backups version shows the version of the executable Flags: -h, --help help for backer --outDir string output directory for saving backups (default "backup") </code></pre> <h2>Examples</h2> <h3>backer</h3> <p><code>backer full</code> Executes a full backup for all active and running containers.</p> <h3>restore</h3><pre><code>Usage: backer restore [containerName] [revision] [flags] Examples: backer restore test 06.11.2018_16.03.48</code></pre> 4 points posted by hankmartinez https://github.com/askm3/backer 3648 Wed, 07 Nov 2018 12:14:00 +0000