The user doguibnu is trying to perform a remote backup using a script with tar and rsync over SSH, but encounters syntax errors, including rsync error: syntax or usage error and --delete: command not found. The error suggests a possible issue with line continuation, as the --delete option appears on a new line without a backslash. pfaffman suspects the syntax problem may stem from improper line continuation. justin suggests using Discourse’s built-in backup command-line tool, but doguibnu clarifies they are not trying to back up Discourse specifically and are unable to find the appropriate forum to post in.
My guess is that the error you describe is because you have the delete at the start of a new line and the previous line is not ending with a backslash.
I did use --delete to delete what not “new” at the path-remote-server. I did try without --delete but returns that I can not use or syntax or usage error about --progress parameter. I try other forms but not work!