Borg backup: Difference between revisions

DHCP (talk | contribs)
m Create a proper Installation section, replace `nix-env -iA` with `environment.systemPackages`
DHCP (talk | contribs)
m Mounting point-in-time archives: use <syntaxhighlight lang=console> for shell commands (1. for consistency with the rest of the wiki and 2. i find it easier to read. if that worsened the readability, feel free to undo this change)
 
Line 161: Line 161:
First, check if there are any archives:
First, check if there are any archives:


<syntaxHighlight lang=bash>
<syntaxHighlight lang=console>
$ borg list user@example.name:/media/backup/backups/station/home-danbst
$ borg list user@example.name:/media/backup/backups/station/home-danbst
...
...
Line 175: Line 175:
Choose one of "archives" and mount it locally:
Choose one of "archives" and mount it locally:


<syntaxHighlight lang=bash>
<syntaxHighlight lang=console>
$ borgfs -f -o uid=1002 \
$ borgfs -f -o uid=1002 \
     user@example.com:/media/backup/backups/station/home-danbst::station-home-danbst-2020-06-10T00:00:46 \
     user@example.com:/media/backup/backups/station/home-danbst::station-home-danbst-2020-06-10T00:00:46 \