Skip to main content
Became Hot Network Question
Include the full error text; don't precis
Source Link
Chris Davies
  • 128k
  • 16
  • 178
  • 323

Having problems with the retry command when paired with rsync. retry is a Debian package and states it can "Repeat command until a criteria is met, usually success.". Trying to use it with rsync on a connection that can sometimes fail. However it always gives the same error: "giving upgiving up: No such file or directory: No such file or directory".

retry '/usr/bin/rsync -av source destination'
retry: Could not execute 'rsync -av source destination', giving up: No such file or directory

Both source and destination exist. I've tried using the absolute path, single and double quotes, quotes around paths, and paths as variables, but none work. I can use the approach from this solution but it is rather cumbersome when doing several directories. Is there something I am missing?

Having problems with the retry command when paired with rsync. retry is a Debian package and states it can "Repeat command until a criteria is met, usually success.". Trying to use it with rsync on a connection that can sometimes fail. However it always gives the same error: "giving up: No such file or directory".

retry '/usr/bin/rsync -av source destination'

Both source and destination exist. I've tried using the absolute path, single and double quotes, quotes around paths, and paths as variables, but none work. I can use the approach from this solution but it is rather cumbersome when doing several directories. Is there something I am missing?

Having problems with the retry command when paired with rsync. retry is a Debian package and states it can "Repeat command until a criteria is met, usually success.". Trying to use it with rsync on a connection that can sometimes fail. However it always gives the same error: giving up: No such file or directory:

retry '/usr/bin/rsync -av source destination'
retry: Could not execute 'rsync -av source destination', giving up: No such file or directory

Both source and destination exist. I've tried using the absolute path, single and double quotes, quotes around paths, and paths as variables, but none work. I can use the approach from this solution but it is rather cumbersome when doing several directories. Is there something I am missing?

Source Link
A. Que
  • 673
  • 1
  • 8
  • 19

Using retry command with rsync

Having problems with the retry command when paired with rsync. retry is a Debian package and states it can "Repeat command until a criteria is met, usually success.". Trying to use it with rsync on a connection that can sometimes fail. However it always gives the same error: "giving up: No such file or directory".

retry '/usr/bin/rsync -av source destination'

Both source and destination exist. I've tried using the absolute path, single and double quotes, quotes around paths, and paths as variables, but none work. I can use the approach from this solution but it is rather cumbersome when doing several directories. Is there something I am missing?