Borgbackup
Appearance
borgbackup is a deduplicating backup software
Installation
sudo apt install borgbackup
If you want the latest version, you can download a static build from releases or use this backport repo.
Usage
Create a repo
# Create a repo without encryption borg init --encryption=none ./testrepo # If you want encryption #borg init --encryption=repokey ./testrepo
Create a backup
The following will create a backup of ~/src titled Monday to the repo ./testrepo.
borg create --stats ./testrepo::Monday ~/src
- Notes
- Name placeholders: {now}, {utcnow}, {fqdn}, {hostname}, {user}
Examples
borg create \
--stats --show-rc \
./testrepo::'{hostname}-daily-{utcnow}' \
/src
Pruning backups
If you're scripting daily, weekly, or monthly backups, you'll probably want to prune old backups.