Bash/rsync

Un article de Le wiki de 2 noisettes - noisette.ch.


Note : The tailing / to the BACKUPFROM dir change the behaviour of rsync. with a / : equivalant to dir/*, don't copy the dir without a / : create the rep to the destination. The tailing / from BACKUPTO has no incidence.

rsync -av --delete ${BACKUPFROM} ${BACKUPTO}