short explanation on how to extract files

This commit is contained in:
Jens Kubieziel 2024-02-17 15:38:05 +01:00
parent 06cf4d8bde
commit a28a3e164f

View file

@ -55,3 +55,19 @@ sudo systemctl enable borg-prune@remote_site_1.timer
> Never trust anything from the internet.\
> Download and verify what it does. It should be somewhat readable.
### How can I restore lost files?
You can manually connect to your borg repository. You'll need
* location of your SSH key (`SSH_KEY`)
* SSH user name (`SSH_USER`)
* SSH host (`SSH_HOST`)
* directory where the borg repo lives (`BORG_REPO`)
* name of the borg repo (`BORG_NAME`)
`
Use the following command to export a tar archive:
`````
BORG_RSH="ssh -i SSH_KEY" borg export-tar ssh://SSH_USER@SSH_HOST/BORG_REPO::BORG_NAME TAR_NAME DIR_NAME
```
Borg will create a tar file with the name `TAR_NAME` and outputs all contents from the directory `DIR_NAME` into it.