Last active
October 29, 2021 23:52
-
-
Save isaiahnixon/f452cb1a0d505ed1381312c18e767295 to your computer and use it in GitHub Desktop.
Borg Automated Backups Setup - Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir bkp | |
sudo apt install borgbackup -y | |
borg init --encryption none bkp/ | |
crontab -e | |
# 0 12 * * * borg create ~/bkp::Downloads-$(date '+\%m-\%d-\%Y') ~/Downloads/ | |
tail -f /var/log/syslog | grep CRON | |
borg list bkp | |
mkdir test-extraction | |
cd test-extraction | |
borg extract ../bkp::Downloads home/e/Downloads | |
cd .. | |
du -sh ~/Downloads | |
du -sh test-extraction | |
crontab -e | |
# 0 13 * * * borg prune -v --list --keep-within=7d ~/bkp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir bkp | |
sudo apt install borgbackup -y | |
borg init --encryption none bkp/ | |
crontab -e | |
# 0 12 * * * borg create ~/bkp::Downloads-$(date '+\%m-\%d-\%Y') ~/Downloads/ | |
# 0 13 * * * borg prune -v --list --keep-within=7d ~/bkp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment