I am trying to run a back script that I wrote that I have placed in the /srv directory on my xubuntu machine.
But when I try to run it, it errors with the following...
user@linuxbox:/srv$ sudo ./backup.sh sudo: unable to execute ./backup.sh: No such file or directory
The contents of my backup.sh script are as follows...
#!/bin/sh rsync --update -raz --progress ./git '/media/user/New Volume/BACKUP'
EDIT: I did flip the executable bit using chmod.
Here is the permissions...
-rwxr-xr-x 1 root root 81 Mar 18 17:16 /srv/backup.sh
EDIT: Apparently another running instance of nano is editing my file. But I did a restart of the PC, so not sure how that persisted. Could this be the problem? This happens when I try to edit in nano.
File backup.sh is being edited (by root with nano 2.5.3, PID 14039); continue?
When I try to kill that process by the PID, it says "No such process"