Newbie in trouble

Totally new to restic. Running Linux Mint 19. I can’t seem to get restic to launch.

Here’s what’s on my drive:

tomc@ANB:~/programs/restic-backup$ ls -l -h
total 14M
drwxrwxr-x 12 tomc tomc 4.0K Jan 19 16:16 restic
-rwxrwxr-x  1 tomc tomc  14M Jan  6 17:28 restic_0.9.4_linux_amd64

I’m thinking this should be launchable, but…

tomc@ANB:~/programs/restic-backup$ restic
Command 'restic' not found, but can be installed with:
sudo apt install restic
tomc@ANB:~/programs/restic-backup$ restic_0.9.4_linux_amd64
restic_0.9.4_linux_amd64: command not found

Now that I’m revealed just how ignorant I am, I’m open to any help offered! I really want to use restic, and I could use the version in the packages for my OS, but I’d rather use 0.9.4

1 Like

When running an executable from the current directory, you need to prefix it with ./ e.g. ./restic_0.9.4_linux_amd64. Ideally rename it to restic first. Do try not to have two different binaries on the system as you may eventually end up with different versions that act differently.

1 Like

Moving the executable to /usr/local/bin should make it globally available and doesn’t require prefixing ./ to it.

PS: Note that /usr/local/bin or /usr/local/sbin aren’t included in most crontabs.

1 Like

My great thanks to you both for your helpful responses. My error derives from my inexperience, as the solution here is simple and (now) obvious.

I’m in business. Thanks again!