Other Products

Search Knowledge Base by Keyword

Performing Restorations with Restic

You are here:
Share:

Performing restorations, as with any process with restic is incredibly easy and quick.

As with any interaction with Restic, you must first initialize the repo to perform actions within restic, to do so follow this guide.

 

The restore command has multiple options available, as shown below –

The below command will restore from the given SnapshotID (retrieved from restic snapshots) it will restore the PathBeingRestored to the LocationToRestoreTo

 

 

The below command will restore from the given SnapshotID (retrieved from restic snapshots) it will restore the PathtoFileBeingRestored to the LocationToRestoreTo

 

 

The below command will restore from the given SnapshotID (retrieved from restic snapshots) it will restore the PathBeingRestored to the LocationToRestoreTo, it will exclude any files/folders under FileOrPathBeingExcluded.

 

 

Note: With restores, the full filepath will be restored, meaning if you are running the below command, it will restore the file to /tmp/restore/home/kbuser/public_html/index.php

 

 

To avoid this, and having to move the content around after the restore, you can specify a restore path of / shown in the below example.

 

 

In the above example, the file index.php will be restored to its original path, /home/kbuser/public_html/index.php

 

Related Articles


Share: