Hi. I’m new to restic. I’ve setup an S3 bucket and repo for backups and I’m able to create snapshots with relevant commands. However, when running backups via cron, it doesn’t seem to have worked.
My system is Ubuntu 18.04. I created a bash file to run the commands that include passwords and everything. I saved this file in /usr/local/bin/backup_storage. In SSH I can run backup_storage. This works and a snapshot is created.
I created a cron with the command backup_storage and it didn’t create any snapshot. In syslog, I can see cron did execute the command.
How do I fix this? Are there any logs that could have more info?
What about actually pasting your cron line and the backup script you’re using? Otherwise people have to fumble in the dark when trying to help you. Not showing these things is like telling a mechanic that your car isn’t working, but not letting them look under the hood of the car…
PS: Check that you’re using restic 0.12.1 - it doesn’t have anything to do with your problem, but Ubuntu might have very old versions of restic in their repositories in case that’s how you installed it.
The problem was that in SSH I use backup_storage while in cron I needed to use usr/local/bin/backup_storage. You want to find out why this is? I’m not really interested in that hehe.