![](https://feddit.nl/pictrs/image/97bd4fab-1698-414a-a2e5-e5257f716cc7.png)
![](https://lemmy.ml/pictrs/image/q98XK4sKtw.png)
2·
11 months agoThat’s probably the issue, crontab has another workdir, so calling the script with a relative path won’t work.
Just use the full path to the script, something like /home/username/folder/directory/backup.sh
and it’ll probably just work.
I think your idea is pretty much correct. One step that might be missing is updating your boot loader to boot into the correct partition, depending on your configuration.