我正在尝试传输在31天内已更新的文件。我正在尝试
/bin/rsync --remove-source-files --files-from="<(find /tmp/rsync/source -type f -mtime -31 -print0)" /tmp/rsync/source /tmp/rsync/destination
但是,尝试此操作时,我不断收到以下错误:
failed to open files-from file <(find /tmp/rsync/source -type f -mtime -31 -print0): No such file or directory
该目录存在并且可以访问。
这是查找结果的输出:
$ find /tmp/rsync/source -type f -mtime -31
/tmp/rsync/source/testfile2.txt
/tmp/rsync/source/testfile.txt
/tmp/rsync/source/sourcefile.txt