tips:borg

This is an old revision of the document!


Borg Backup

create new repository for backup on empty folder

TARGET=nero
mkdir -p /run/media/scipio/backup/$TARGET
cd /run/media/scipio/backup/$TARGET
borg --verbose init --encryption=none ./

add folder to backup

TAG=dataset
cd /run/media/scipio/backup/$TARGET
borg --verbose --progress create --stats --exclude "*.old" ./::$(date --iso-8601)-$TAG /storage/dataset

add another folder to same target with different tag

TAG=cloud
cd /run/media/scipio/backup/$TARGET
borg --verbose --progress create --stats ./::$(date --iso-8601)-$TAG /home/scipio/cloud
  • tips/borg.1602249554.txt.gz
  • Last modified: 2020/10/09 15:19
  • by scipio