https://github.com/dries007/serverbackups
Simple, but capable, backup script intended for use on servers.
https://github.com/dries007/serverbackups
backup backup-cli backup-script bash borg borgbackup server
Last synced: 8 months ago
JSON representation
Simple, but capable, backup script intended for use on servers.
- Host: GitHub
- URL: https://github.com/dries007/serverbackups
- Owner: dries007
- License: unlicense
- Created: 2020-01-27T21:22:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-27T21:22:41.000Z (about 6 years ago)
- Last Synced: 2025-04-08T04:42:32.056Z (12 months ago)
- Topics: backup, backup-cli, backup-script, bash, borg, borgbackup, server
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Server Backups
Backup script & system for my server.
It comes with a free 100GB storage box that I use for backups.
Based on [Hetzner's guide](https://community.hetzner.com/tutorials/install-and-configure-borgbackup).
TL;DR: The backup.sh script is a DIY solution that makes a bunch of pattern files by running `scripts/*`.
Those patterns are fed to Borg which does compression and deduplication.
Feel free to fork and use as you see fit. Released under The Unlicense.
## Setup
Some important settings in Hetznet control panel:
- **Disable external access**
- Enable SSH support (for Borg)
Add an ssh config entry with the correct hostname, user and ssh key.
The script assumes the ssh connection can be setup using `backups` as host.
The path is set to `./borg/
## Automation
Automate the main script with cron.