Restoring Tarsnap backups

Updated . Posted . Visible to the public.

Note: If you're logged on to the server as root you shouldn't need to sudo these commands, but in many cases you'll be logged on as another user (such as a deploy user or your own user) and not using the root account.

To See a list of archives

sudo tarsnap --list-archives | sort

To restore one of those archives:

sudo tarsnap -x -f [name_of_archive]

Check that the files and directories are what you expect.

If you have access to the tarsnap key that was used for creating the backup you can also do the above from your local computer, you just need to pass the keyfile as a parameter for the commands above, eg:

tarsnap --key [key file] --list-archives

adre
Last edit
adre
Posted by adre to Foxsoft (2017-10-25 13:05)