Hello all, I am using rsync version 3.0.3 protocol version 30, and I was wondering if I could use --remove-source-files option in this fashion: I use a crontab to dayly backup data, something like: rsync -tai --remove-source-files --ignore-existing --no-g --no-o --no-p user@source:operativo/almacen/{ESP05/recorte/*.tar,EU/recorte/*.tar} /media/BACKUP3_PROMES10/PROMES10km/ and I check the output status to send me an e-mail if there is an error, but I do not consider error the fact that maybe there are no new files to backup. ?Is there any way to specify that rsync should not report an error if it finds no files to backup? Thank you very much in advance, C?sar.
On Tue, Jun 02, 2009 at 04:08:26PM +0000, C?sar Tejeda Hern?ndez wrote:> rsync -tai --remove-source-files --ignore-existing --no-g --no-o --no-p > user@source:operativo/almacen/{ESP05/recorte/*.tar,EU/recorte/*.tar} /media/BACKUP3_PROMES10/PROMES10km/ > [...] > ?Is there any way to specify that rsync should not report an error if it finds no files to backup?Your shell is probably including the raw wildcards when they don't match anything, so you should be using include/exclude options instead of the wildcards. For instance: rsync -rti --remove-source-files --ignore-existing --include=*.tar --exclude=* \ user@source:operativo/almacen/{ESP05,EU}/recorte/ /media/BACKUP3_PROMES10/PROMES10km/ ..wayne..