https://github.com/brennerm/dr.backup
Backup and restore your Docker registry without access to the filesystem
https://github.com/brennerm/dr.backup
Last synced: 3 months ago
JSON representation
Backup and restore your Docker registry without access to the filesystem
- Host: GitHub
- URL: https://github.com/brennerm/dr.backup
- Owner: brennerm
- License: mit
- Created: 2019-01-25T20:50:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-18T00:50:41.000Z (over 3 years ago)
- Last Synced: 2025-01-18T09:35:34.065Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Dr.Backup [](https://travis-ci.org/brennerm/Dr.Backup)
## Features
- backup Docker registry
- restore a Docker registry
- no access to the registry's filesystem required
- support for BasicAuth protected registries
- no dependencies
## Usage
```
$ dr-backup --help
usage: dr_backup [-h] (-b | -r) [-o OUTPUT] [-f] [-s SOURCE]
[--disable-ssl-verification] [-u USERNAME] [-p PASSWORD]
registry_url
positional arguments:
registry_url
optional arguments:
-h, --help show this help message and exit
-b, --backup
-r, --restore
--disable-ssl-verification
disable SSL verification (default: False)
-u USERNAME, --username USERNAME
username to authenticate against registry, provide
password with -p or you'll be prompted
-p PASSWORD, --password PASSWORD
password to authenticate against registry
backup:
-o OUTPUT, --output OUTPUT
path the backup will be saved to (default:
./${registry_url}_${timestamp})
-f, --force force overwrite of existing backup file (default:
False)
restore:
-s SOURCE, --source SOURCE
path pointing to the backup file we will restore from
```
### Backup
```
$ dr-backup --backup --output my-old-registry.tar https://my-old-registry.com
[3/3] wordpress [1/1] latest
```
### Restore
```
$ dr-backup --restore --source my-old-registry.tar https://my-new-registry.com
[3/3] wordpress [1/1] latest
```