![]() Go into the directory of the Windows Snapshot using the ID cd /mnt/restic/ids/1b8e60ee You can browse backups by the host they were backed up from, the snapshot id, the date/time stamp, or the tags. When you run the mount command, you will need to start another ssh or terminal session, or you can run the mount command in the background by appending the & sign. Then we can mount the snapshots and browse them. To do this, we first need to create a mount point for the restic snapshots. restic restore 1b8e60ee -target /tmp/restoreĪnother method to restore files, is to mount the snapshot database, browse to the backup you want, and copy files from the mount point to any destination you like. Restic will restore all files from the backup, with their full paths, starting under that directory. To restore a snapshot to a directory, you need to supply the snapshot id, and specify the target directory. Method #1: Restoring a snapshot to a directory Restoring from a Restic Backup stored in B2 To see a list of all the snapshots you have done, with their data and time stamps, as well as optional tags, use the following command: restic snapshotsĤ6225328 07:54:37 restic-mike /usr/localĢa63bc2c 08:18:30 restic-mike /usr/localģ6754856 12:20:40 restic-mike /usr/localģd8081cb 12:21:44 restic-mike /usr/localĭ0f97fe4 12:22:16 restic-mike /usr/local/srcĭ1c60d85 12:28:41 restic-mike /usr/local/srcġb8e60ee 07:14:24 restic-mike Windows /mnt/Windows No parent snapshot found, will read all files In this example, I am backing up a Windows SMB share on my Linux machine. No changed files yet, so no files backed up.īacking up with tags is a useful way to identify your snapshots, identify which hosts they are from, and later prune unneeded snapshots. The second backup only backs up changed files, since it uses block-level deduplication. Since we have defined the RESTIC_REPOSITORY variable, we actually don’t need to add -r b2:restic-west02 t o our commands. Repository fd5c6a11 opened successfully, password is correctĬreated new cache in /home/administrator/.cache/resticĮxample Output. To backup the /usr/local directory restic -r b2:restic-west02 backup /usr/local Losing your password means that your data isīefore we run any Restic commands we need to load the environment variables with this command: source /etc/restic-env ![]() Please note that knowledge of your password is required to access t he repository. Initialize the repository (repo) source ~/restic-envĬreated restic repository fd5c6a1116 at b2:restic-west02 Then /etc/restic-password could contain 1 line with the password the restic files so only root or a user you create can see the files chown root:root /etc/restic-env This will eliminate the need to pass every parameter each time we run restic. To simplify the use of restic, it’s best to d efine the restic environment variables you will need in a file, such as /etc/restic-env. On Linux s3fuse works just as well as regular fuse, but has components in it to allow you to mount cloud storage buckets compatible with S3, like Backblaze B2.Īfter installation, you can make sure restic is on the latest version by running this command: restic self-update Configuring Restic On Mac, use OSXFuse 3.10.6 if you're running Catalina (10.15), otherwise, you can use the current version of OSXFuse (now called MacFuse) if you are on BigSur. Note about fuse: fuse is needed to be able to mount the snapshot backups, which is one of the restore options. ![]() Ubuntu/Debian sudo apt install restic fuse ![]() ![]() Redhat/CentOS sudo yum install restic fuse This article will focus on the Linux and Mac versions. While Restic is available on Windows, some features are not available. Restic can be installed from source code or binaries which can be downloaded from GitHub, or installed using the a local package manager on most operating systems. One restic repository can be used to contain the snapshots from one host, or multiple, as the host information is stored in the snapshot index also. All this while taking minimal storage space. It uses snapshots, block-level deduplication, along with complex indexing to allow for quick restores. Restic is an open-source backup tool that works with local storage, NAS devices, or cloud storage (Backblaze B2). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |