Skip to content

Commit

Permalink
Tweak formatting on borg extract example
Browse files Browse the repository at this point in the history
  • Loading branch information
luispabon committed Oct 6, 2022
1 parent 0119d63 commit 985ddba
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,20 @@ Then:

```bash
# Move your current home folder out of the way
cd /home
mv $HOME $HOME-old
~ cd /
/ ~ mv $HOME $HOME-old

# Make yourself a new one belonging to you
sudo mkdir $HOME
/ ~ sudo mkdir $HOME
sudo chown $(whoami):$(getent group $(whoami) | awk 'BEGIN { FS = ":" } ; { print $1 }') $HOME

# Work out available backups and extract!
borg list
/ ~ borg list
home-2022-10-05T17.30 Weds, 2022-10-05 17:30:36 [1234567890abcdef1234567890abcdef]
home-2022-10-06T17.30 Thu, 2022-10-06 17:30:36 [1234567890abcdef1234567890abcdef]

cd /
borg extract ::home-2022-10-05T17.30
reboot
/ ~ borg extract ::home-2022-10-05T17.30

[... check your restored home folder ...]
/ ~ reboot
```

0 comments on commit 985ddba

Please sign in to comment.