This program makes remote connections through SSH to specified servers and downloads predefined paths into compressed files.
- Make a Docker Compose file.
- Edit
servers.yml
. - Make/copy an OpenSSH client config for the servers in
servers.yml
.
version: "3.4"
services:
backup:
image: carlgo11/backup
volumes:
- "./ssh.key:/ssh.key:ro"
- "./ssh.config:/root/.ssh/config"
- "./Backups:/Backups"
This service downloads everything from the path specified in servers.yml
and turns it into a tar.gz file with the
current timestamp.
servers:
"example-server":
services:
"example-service-name":
type: "Basic"
path: "/full/path/on/remote/server"
Name | Type | Description |
---|---|---|
path | string | Directory or file on the remote server |
This service downloads all MailCow backups that were made using their Backup tool (not compatible with cold-standby backups).
servers:
"example-server":
services:
"example-service-name":
type: "MailCow"
path: "/mailcow/backups/"
Name | Type | Description |
---|---|---|
path | string | MailCow backup directory on remote server |
docker-compose up -d