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