The problem is that retry
trytries to execute a file called '/usr/bin/rsync -av source destination'
(including the spaces in the middle).
In order to tell theretry
that rsync
is the command, and -av
,source
, and destination
are the flagsparameters that belong to the rsync
command, you'll need to run it the following way:
retry -- /usr/bin/rsync -av source destination
The reason you'll need the --
(double dash) is to signify the end of command options and beginning of positional arguments. WithWithout the --
before the command, retry
will think that -av
is one of it's command options, and will throw the following error:
retry: invalid option -- 'a'