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
#!/bin/bash -e | |
## borg-tree | |
# With this Bash script, you can create backups like this (note the different types of slashes!): | |
# # borg create '/path/to/repo::category\subdir\2018-04-15' | |
# Create the symlink tree like this: | |
# # borg-tree /path/to/repo /path/for/browsing | |
# And then browse the archives in paths like this: | |
# # /path/for/browsing/category/subdir/2018-04-15 | |
# Note that the latter is a SYMLINK; command-line tools like cp should be used with caution. |