Can't get Restic running on Linux Mint 17.2 Rafaela 64-bit

Hello,

I am looking to set up Restic in order to backup to Backblaze. I have followed the tutorial on their site but when I attempt to verify that Restic is available, I get a “command not found” error.

chris@Mint-Linux-File-Server ~ $ chmod u+x restic_0.9.2_linux_amd64
chmod: cannot access ‘restic_0.9.2_linux_amd64’: No such file or directory
chris@Mint-Linux-File-Server ~ $ cd bin
chris@Mint-Linux-File-Server ~/bin $ chmod u+x restic_0.9.2_linux_amd64
chris@Mint-Linux-File-Server ~/bin $ mv restic_0.9.2_linux_amd64 restic
chris@Mint-Linux-File-Server ~/bin $ restic version
No command ‘restic’ found, did you mean:
Command ‘estic’ from package ‘estic’ (universe)
Command ‘xestic’ from package ‘estic’ (universe)
restic: command not found

I am running
Release Linux Mint 17.2 Rafaela 64-bit
Kernel Linux 4.4.0-127-generic x86_64
MATE 1.10.2
AMD Athlon™ X4 860K Quad Core Processor × 4

Any help would be greatly appreciated!

1 Like

Do Mint read from ~/bin by default? If not you may need to setup that in your .profile. Also, maybe you can move it to /usr/bin just to check if it can read from there.

1 Like

You can check what your PATH environment variable contains like this: echo $PATH. In order for your shell to find the restic binary, it needs to be in one of the paths listed in the environment variable. If that’s not the case for the bin directory in your home dir, then you can either add it to the list of dirs, or move the restic binary to a path contained in the list. I recommend /usr/local/bin.

You can also just call restic with a path, like ~/bin/restic init or so.

Thank you both. I will try these suggestions later this evening when I am back home and have access to my PC.