tips:borg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tips:borg [2020/10/09 15:19] scipiotips:borg [2020/10/09 16:59] (current) scipio
Line 4: Line 4:
 create new repository for backup on empty folder create new repository for backup on empty folder
 <code> <code>
-TARGET=nero +REPO=nero 
-mkdir -p /run/media/scipio/backup/$TARGET +mkdir -p /run/media/scipio/backup/$REPO 
-cd /run/media/scipio/backup/$TARGET+cd /run/media/scipio/backup/$REPO
 borg --verbose init --encryption=none ./ borg --verbose init --encryption=none ./
 </code> </code>
Line 14: Line 14:
 TAG=dataset TAG=dataset
 cd /run/media/scipio/backup/$TARGET cd /run/media/scipio/backup/$TARGET
-borg --verbose --progress create --stats --exclude "*.old" ./::$(date --iso-8601)-$TAG /storage/dataset+borg --verbose --progress create --stats --exclude "*.old" ./::$TAG-$(date --iso-8601) /storage/dataset
 </code> </code>
  
Line 21: Line 21:
 TAG=cloud TAG=cloud
 cd /run/media/scipio/backup/$TARGET cd /run/media/scipio/backup/$TARGET
-borg --verbose --progress create --stats ./::$(date --iso-8601)-$TAG /home/scipio/cloud+borg --verbose --progress create --stats ./::$TAG-$(date --iso-8601)-$TAG /home/scipio/cloud
 </code> </code>
  • tips/borg.1602249554.txt.gz
  • Last modified: 2020/10/09 15:19
  • by scipio