Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chappio/rsnapshot
Just... Rsnapshot
https://github.com/chappio/rsnapshot
Last synced: 16 days ago
JSON representation
Just... Rsnapshot
- Host: GitHub
- URL: https://github.com/chappio/rsnapshot
- Owner: ChappIO
- Created: 2017-10-10T19:21:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-10T20:39:13.000Z (about 7 years ago)
- Last Synced: 2024-10-30T10:47:38.753Z (2 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rsnapshot in docker
Just... rsnapshot## Usage
```bash
docker run \
--rm \
-v :/config
-v :/snapshots
chappio/rsnapshot
daily
```## Parameters
- `--rm` - delete the container after execution
- `-v /config` - mount the volume which contains the rsnapshot configurations
- `-v /snapshots` - mount the volume which contains the snapshots
- `daily` - pass arguments to rsnapshot## Example
So if you wish to create a backup of the `/mnt/shares` folder you:
Create a new configuration:
```bash
docker run --rm -v /path/to/configs:/config chappio/rsnapshot
```Update your configuration:
```bash
nano /path/to/configs/rsnapshot.conf
```Run the backup:
```bash
docker run --rm -v /path/to/configs:/config -v /path/to/snapshots:/snapshots -v /mnt/shares:/mnt/shares:ro chappio/rsnapshot daily
```## docker-compose
```yaml
services:
rsnapshot:
image: chappio/rsnapshot
volumes:
- ./config:/config
- ./snapshots:/snapshots
- /mnt:/mnt
```And then execute:
```bash
docker-compose run --rm rsnapshot daily
```