Bonjout,
J’utilise rsync pour sauvegarder mon dossier “Musique” sur un pc distant. Le dossier est monté via le fstab (CIFS). Le fait est que, vu le nombre de fichiers très important, rsync est très lent à constituer la liste : “sending incremental file list” = 2h.
Je me suis donc penché sur les options de rsync et j’ai trouvé celle-ci : “–ignore-existing”. Ca a l’air de fonctionner comme avant et le gain de temps est énorme ; le fait est que je saisis mal ce que fait cette option…
Ce que je pense avoir compris : les fichiers existants sur la destination sont ignorés et ne sont pas updatés même s’il y a eu modif (d’un fichier texte par exemple) entre deux sauvegardes ; ce qui, pour des mp3, n’est en rien dérangeant.
Mon anglais étant approximatif, je colle ici l’extrait du man… Si une bonne âme pouvait éclairer ma lanterne sur le rôle de cette option…
[code] --existing, --ignore-non-existing
This tells rsync to skip creating files (including directories) that do not exist yet on the destination. If this option is combined with the --ignore-existing option, no files will be
updated (which can be useful if all you want to do is delete extraneous files).
This option is a transfer rule, not an exclude, so it doesn’t affect the data that goes into the file-lists, and thus it doesn’t affect deletions. It just limits the files that the receiver
requests to be transferred.
--ignore-existing
This tells rsync to skip updating files that already exist on the destination (this does not ignore existing directories, or nothing would get done). See also --existing.
This option is a transfer rule, not an exclude, so it doesn’t affect the data that goes into the file-lists, and thus it doesn’t affect deletions. It just limits the files that the receiver
requests to be transferred.
This option can be useful for those doing backups using the --link-dest option when they need to continue a backup run that got interrupted. Since a --link-dest run is copied into a new
directory hierarchy (when it is used properly), using --ignore existing will ensure that the already-handled files don’t get tweaked (which avoids a change in permissions on the hard-linked
files). This does mean that this option is only looking at the existing files in the destination hierarchy itself.[/code]
Merci.