From a28a3e164fcb712dd4209b9425da1f5628c46be1 Mon Sep 17 00:00:00 2001 From: Jens Kubieziel Date: Sat, 17 Feb 2024 15:38:05 +0100 Subject: [PATCH] short explanation on how to extract files --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 021b1db..9c652ef 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file