実行中のPostfixおよびCourierサーバーファイルをバックアップすると、次のような警告がたくさん表示されます。
file has vanished: /var/kunden/mail/username/[email protected]/tmp/courier.lock
rsync
Cronで実行しているときにこれらの警告を表示したくない場合はどうすればよいですか/usr/bin/rsnapshot hourly
?
どういうわけかこのディレクトリを除外できますか?
/var/kunden/mail/*/*/tmp/
フォルダtmp
はより深くなる可能性があります。たとえば、次のようになります。
file has vanished: /var/kunden/mail/username/[email protected]/.Presse/tmp/1353871473.M716135P32214_imapuid_36.test.de
file has vanished: /var/kunden/mail/username/[email protected]/.Presse/tmp/courier.lock
ベストアンサー1
残念ながら、SWdreamのソリューションで説明されているものとは異なり、--ignore-missing-args
ファイルが消えるには影響はありません。存在しないソースパラメータは無視されます。
バラよりman rsync
:
--ignore-missing-args When rsync is first processing the explicitly requested source files (e.g. command-line arguments or --files-from entries), it is normally an error if the file cannot be found. This option suppresses that error, and does not try to transfer the file. This does not affect subsequent vanished-file errors if a file was initially found to be present and later is no longer there.
消えるファイルを無視する「公式の」方法は、公式のrsyncソースストアで次のスクリプトを使用することです。 https://git.samba.org/?p=rsync.git;a=blob_plain;f=support/rsync-no-vanished;hb=HEAD
これは@kenorbと@gilles-quenotが言ったものと非常に似ています。