Rsync syntax error when run from bash script

后端 未结 3 1212
日久生厌
日久生厌 2020-12-07 04:24

I have been working on a backup script that uses rsync to do an incremental backup.

I have tested the following rsync command manually, and it runs and completes a b

3条回答
  •  既然无缘
    2020-12-07 04:57

    The approach suggested by @chepner didn't work on my Mac OS X (10.9.4), but eval did.

    eval rsync "$OPT1 $SRC $TRG"
    

提交回复
热议问题