tips:borg

Differences

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

Link to this comparison view

Next revision
Previous revision
tips:borg [2020/10/09 15:14] – created 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>
-mkdir -p /run/media/scipio/backup/nero +REPO=nero 
-cd /run/media/scipio/backup/nero+mkdir -p /run/media/scipio/backup/$REPO 
 +cd /run/media/scipio/backup/$REPO
 borg --verbose init --encryption=none ./ borg --verbose init --encryption=none ./
 </code> </code>
Line 11: Line 12:
 add folder to backup add folder to backup
 <code> <code>
-cd /run/media/scipio/backup/nero +TAG=dataset 
-borg --verbose --progress create --stats --exclude "*.old" --exclude "tmp" ./::$(date --iso-8601)-dataset +cd /run/media/scipio/backup/$TARGET 
-/storage/dataset+borg --verbose --progress create --stats --exclude "*.old" ./::$TAG-$(date --iso-8601) /storage/dataset 
 +</code> 
 + 
 +add another folder to same target with different tag 
 +<code> 
 +TAG=cloud 
 +cd /run/media/scipio/backup/$TARGET 
 +borg --verbose --progress create --stats ./::$TAG-$(date --iso-8601)-$TAG /home/scipio/cloud
 </code> </code>
  • tips/borg.1602249262.txt.gz
  • Last modified: 2020/10/09 15:14
  • by scipio