Diff for "TechDocs/TechnicalProcesses/Backup/Restore"

Differences between revisions 2 and 3
Revision 2 as of 2018-04-25 11:53:03
Size: 1075
Editor: vincent
Comment:
Revision 3 as of 2020-03-20 13:58:38
Size: 0
Editor: max.mehl
Comment: replaced by borg setup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
To restore a whole file system of a server, a fast way of doing this
would be (running on cleve):

{{{
remotepass=<see documentation>
remote=sftp://<user>:$remotepass@u124410.your-storagebox.de/
duplicity restore $remote/cleve /<restore_point>
}}}

This will ask you for the passphrase for the GnuPG key used for
backups, so be sure to have it at hand.

If you want to restore individual files, there's a script on cleve
which help you do that: bin/restore.sh

Just run the command with the system name (without .fsfeurope.org) and
restore point on the command line:

{{{
bin/restore.sh cleve /new_path
}}}

The restore script will create the path of the restore point and
create a list of all files backed up on the indicated system. This
list will be loaded in an editor (usually vi), where you will be asked
to REMOVE the lines containing the file names you wish to restore.

After you save and exit, the script will assemble a list of the
filenames you removed from the file and call duplicity with the right
options to restore those files.