--Apple-Mail=_8DBBA237-B782-4437-A2AC-6C86318BED9E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
Bonjour,
en effet « cp » n’est qu’une simple copie et n’a pas d’option de reprise. « rsync » est bien plus « intelligent » de ce point de vue car avant de copier il sait vérifier :
SI il y a une différence entre la source et la destination
Si la source est plus récente ou non
Une reprise de la copie en cas de plantage car il crée un fichier intermédiaire
…
A+
Le 18 août 2024 à 09:50, Sébastien Dinot <sebastien.dinot@free.fr> a écrit :
benoit a écrit :
Qu'advient-il du fichier partiellement copié ?
Je crains qu'il ne faille pas attendre une grande « intelligence » de la
commande cp, soit on lui demande d'écraser, soit on lui demande de ne
pas écraser. À ma connaissance, elle n'a pas de comportement plus fin.
Lorsqu'un arrêt brutal est à craindre et qu'on souhaite pouvoir
reprendre les opérations à chaud, je préconise l'utilisation de la commande rsync.
Sébastien
--
Sébastien Dinot, sebastien.dinot@free.fr
http://www.palabritudes.net/
Ne goutez pas au logiciel libre, vous ne pourriez plus vous en passer !
--
Pierre Malard
« on ne risque rien à livrer le secret professionnel car
on ne livre pas la façon de s’en servir »
Jean Cocteau - « Le secret professionnel » - 1922
|\ _,,,---,,_
/,`.-'`' -. ;-;;,_
|,4- ) )-,_. ,\ ( `'-'
'---''(_/--' `-'\_) πr
perl -e '$_=q#: 3|\ 5_,3-3,2_: 3/,`.'"'"'`'"'"' 5-. ;-;;,_: |,A- ) )-,_. ,\ ( `'"'"'-'"'"': '"'"'-3'"'"'2(_/--'"'"' `-'"'"'\_): 24Ï€r::#;y#:#\n#;s#(\D)(\d+)#$1x$2#ge;print'
- --> Ce message n’engage que son auteur <--
--Apple-Mail=_8DBBA237-B782-4437-A2AC-6C86318BED9E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Bonjour,<div class=""><br class=""></div><div class="">en effet «
cp » n’est qu’une simple copie et n’a pas d’option de reprise. « rsync » est bien plus « intelligent » de ce point de vue car avant de copier il sait vérifier :</div><div class=""><ul class=""><li class="">SI
il y a une différence entre la source et la destination</li><li class="">Si la source est plus récente ou non</li><li class="">Une reprise de la copie en cas de plantage car il crée un fichier intermédiaire</li><li class="">…</li></ul></div><div
class=""><br class=""></div><div class="">A+<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Le 18 août 2024 à 09:50, Sébastien Dinot <<a href="mailto:
sebastien.dinot@free.fr" class="">
sebastien.dinot@free.fr</a>> a Ã
©crit :</div><br class="Apple-interchange-newline"><div class=""><div class="">benoit a écrit :<br class=""><blockquote type="cite" class="">Qu'advient-il du fichier partiellement copié ?<br class=""></blockquote><br class="">Je crains qu'il ne faille
pas attendre une grande « intelligence » de la<br class="">commande cp, soit on lui demande d'écraser, soit on lui demande de ne<br class="">pas écraser. À ma connaissance, elle n'a pas de comportement plus fin.<br class=""><br class="">Lorsqu'
un arrêt brutal est à craindre et qu'on souhaite pouvoir<br class="">reprendre les opérations à chaud, je préconise l'utilisation de la<br class="">commande rsync.<br class=""><br class="">Sébastien<br class=""><br class=""><br class=""><br class=""
-- <br class="">Sébastien Dinot, <a href="mailto:sebastien.dinot@free.fr" class="">sebastien.dinot@free.fr</a><br class=""><a href="http://www.palabritudes.net/" class="">http://www.palabritudes.net/</a><br class="">Ne goutez pas au logiciel libre,
vous ne pourriez plus vous en passer !<br class=""><br class=""></div></div></blockquote></div><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space;
line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-
wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing:
0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-
spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-
space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-
space;" class=""><font face="Courier New" style="color: rgb(0, 0, 0); text-decoration: none;" class=""><font size="1" class="">-- </font><br class=""><font size="1" class=""><span style="font-style: normal;" class="">Pierre Malard</span></font></
font><font face="Courier New" size="1" class=""><br class=""><br class=""></font><div style="color: rgb(0, 0, 0); text-decoration: none; font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-
space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><font face="Times" style="color: rgb(0, 0, 0);" class=""><i class=""> « on ne risque rien à livrer le secret professionnel car<br class=""> on ne livre pas la
façon de s’en servir »<br class=""></i></font><font face="Times" class=""> Jean Cocteau - « Le secret professionnel » - 1922<br class=""></font><font face="Courier New" size="1" style="color:
rgb(0, 0, 0);" class=""> |\ _,,,---,,_<br class=""> /,`.-'`' -. ;-;;,_<br class=""> |,4- ) )-,_. ,\ ( `'-'<br class=""> '---''(_/--' `-'\_) πr<br class="">
<br class="">perl -e '$_=q#: 3|\ 5_,3-3,2_: 3/,`.'"'"'`'"'"' 5-. ;-;;,_: |,A- ) )-,_. ,\ ( `'"'"'-'"'"': '"'"'-3'"'"'2(_/--'"'"' `-'"'"'\_): 24Ï€r::#;y#:#\n#;s#(\D)(\d+)#$1x$2#ge;print'<br class="">- --> Ce message nâ
€™engage que son auteur <--</font></div></div></div></div></div></div></div></div></div></div></div>
</div>
<br class=""></div></body></html> --Apple-Mail=_8DBBA237-B782-4437-A2AC-6C86318BED9E--
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2
Comment: GPGTools -
http://gpgtools.org
iQIzBAEBCgAdFiEE0KHTJ+AWKhmI+acm/pSWHuad/BgFAmbBtgAACgkQ/pSWHuad /BihEg//b8PvPK+Nv7HJw94iQZhOCxLTrrSKxljc9q0AU4Al9swwDAthFYf1EMvd /A8Z7435MvImJ4SnY4qFwi1FFVdK4IgC1XIi/zL+ZLjxWHkTa3w0/AiqGfGONcYY m/1euP/iIHFGfR5nMa//xuDYaaqD3JCRHtclFvU1OKSIsCIOtA+01iiz34jF/vGe VhZyVVOTcpms2FxCH89Z1Duy1OMP4qN1k6btqLbB+6jyACgoaFHRD3AAE3JuQ7Vt 2MDY4OFZe+9anstduhhP+IZSu2OqdWf3KUI0ieUpUDUMUaXG8fNnAuKLMi6JFT+J TW1ksEbfE+hKCoZua/LnqrCD/7tYIFpGOcTxa9uxrPbrx1D0hDazp3CCqcflE9MA FOJEwJaDeGVyDV4ddkCbhi7ov1tWWRXjbLh5XuS+2M1jxNLkDAvgN9W/Ov4V/a4K rtji0CrPo6rkVlbzsHiURcB//geip9YDltmngsFhkoA/O2kRksE93jfpFxMdEiSl bFL+KZeFB59+NSBLreY19tPnYljWYHyW9L/KpmIcwR6yFAqnJm0nI7pV3ZTBs2fo SJqpeE3/3nwW/xVgPcmB4WYVFDs6/kN6E16jxQRXNnujFz8r6G+nFeNxRo8S4yyp soMLYAqJXrr6s4nTj2m63S4KWw80RRxj4qcu+e7yU5pLRb5jc+g=
=JPTq
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)