Skip to content

manojselvang/docker-volume-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Volume Backup

Minimal project to:

  • Generate logs in a Docker volume
  • Backup the volume

Prerequisites

  • Docker installed

Repo Structure

docker-volume-backup/
├── backup.sh
├── start-log-generator.sh
├── archive/
└── README.md

Usage

1. Start log generator

./start-log-generator.sh

Creates a container that writes a sample log into the volume.


2. Create backup

./backup.sh

Backups are stored in:

./archive/

  • Backup uses tar.gz
  • Volume is mounted read-only during backup

About

This script backs up a Docker volume into a compressed archive.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages