See borgbackup.readthedocs.io/en/stable/ for BorgBackup documentation.
Hint: Ensure you are using a random unique secret-passphrase and the proper path to your private SSH key!
Init repository:
docker run \
-e BORG_PASSPHRASE=secret-passphrase \
-v /path/to/private-ssh-key:/borgbackup/id_rsa \
repository.gitlab.com/nl2go/ingfrastructure/borgbackup \
init --encryption=repokey ssh://[email protected]/./backup_$(hostname)
Create backup of some folders:
docker run \
-e BORG_PASSPHRASE=secret-passphrase \
-v /path/to/private-ssh-key:/borgbackup/id_rsa \
-v /folder1:/folder1 \
-v /folder2:/folder2 \
repository.gitlab.com/nl2go/ingfrastructure/borgbackup \
create -v --stats ssh://[email protected]/./backup_$(hostname)::'{now:%Y-%m-%d_%H:%M}' \
/folder1 /folder2
Prune old backups:
docker run \
-e BORG_PASSPHRASE=secret-passphrase \
-v /path/to/private-ssh-key:/borgbackup/id_rsa \
repository.gitlab.com/nl2go/ingfrastructure/borgbackup \
borg prune -v --list --keep-daily=7 ssh://[email protected]/./backup_$(hostname)
The content of this repository is under the MIT licence.
Content type
Image
Digest
Size
75.6 MB
Last updated
almost 8 years ago
docker pull nl2go/borgbackup