rsync fichiers oubliés ???
Le
Une Bévue
je fais un rsync, via ssh, entre mon portable dell sous Xubuntu 11.10 /
Voyager et mon iMac sou Lion latest.
la commande :
rsync -a --delete-after --exclude '.gvfs' -e ssh ${SRC} ${CMP}:${DST}
avec :
SRC=/home/yt
CMP=yt@[<adresse IPV6 de l'iMac>]
et
DST=/Users/yt/Downloads/Dell
sur le dell, j'ai les fichiers suivants :
yt@D620 ~ % lal Téléchargements
total 1652624
drwxr-xr-x 2 yt yt 4096 2012-01-03 08:32 .
drwxr-xr-x 69 yt yt 4096 2012-01-03 08:40 ..
-rw-r--r-- 1 yt yt 4542781 2011-12-06 15:19 FreeGo4.5.zip
-rw-rw-r-- 1 yt yt 1111773184 2012-01-03 08:20
linuxmint-201109-xfce-dvd-64bit.iso
-rw-r--r-- 1 yt yt 104054 2011-12-06 11:03 m3u4radiotray.zip
-rw-r--r-- 1 yt yt 26112 2011-12-06 11:01 Nikon NX2 Product Key.doc
au "début" de la sauvegarde, je vois, sur mon iMac, les fichiers suivants :
FreeGo4.5.zip
Nikon NX2 Product Key.doc
et donc ni FreeGo ni linuxmint.
à la fin, je me retrouve avec le répertoire "Téléchargements" VIDE côté
iMac :
yt@D620 ~ % ssh yt@iMac
Last login: Mon Jan 2 19:35:21 2012 from dell-par
imyt% ls -al Downloads/Dell/yt/Téléchargements
total 0
drwxr-xr-x 2 yt staff 68 3 jan 00:46 .
drwxr-xr-x 92 yt staff 3128 3 jan 07:26 ..
imyt%
Pourquoi ?
Voyager et mon iMac sou Lion latest.
la commande :
rsync -a --delete-after --exclude '.gvfs' -e ssh ${SRC} ${CMP}:${DST}
avec :
SRC=/home/yt
CMP=yt@[<adresse IPV6 de l'iMac>]
et
DST=/Users/yt/Downloads/Dell
sur le dell, j'ai les fichiers suivants :
yt@D620 ~ % lal Téléchargements
total 1652624
drwxr-xr-x 2 yt yt 4096 2012-01-03 08:32 .
drwxr-xr-x 69 yt yt 4096 2012-01-03 08:40 ..
-rw-r--r-- 1 yt yt 4542781 2011-12-06 15:19 FreeGo4.5.zip
-rw-rw-r-- 1 yt yt 1111773184 2012-01-03 08:20
linuxmint-201109-xfce-dvd-64bit.iso
-rw-r--r-- 1 yt yt 104054 2011-12-06 11:03 m3u4radiotray.zip
-rw-r--r-- 1 yt yt 26112 2011-12-06 11:01 Nikon NX2 Product Key.doc
au "début" de la sauvegarde, je vois, sur mon iMac, les fichiers suivants :
FreeGo4.5.zip
Nikon NX2 Product Key.doc
et donc ni FreeGo ni linuxmint.
à la fin, je me retrouve avec le répertoire "Téléchargements" VIDE côté
iMac :
yt@D620 ~ % ssh yt@iMac
Last login: Mon Jan 2 19:35:21 2012 from dell-par
imyt% ls -al Downloads/Dell/yt/Téléchargements
total 0
drwxr-xr-x 2 yt staff 68 3 jan 00:46 .
drwxr-xr-x 92 yt staff 3128 3 jan 07:26 ..
imyt%
Pourquoi ?

Poser une question


je précise que, si je fais un backup sur un disk externe, avec la commande :
rsync -az --delete-after --exclude '.gvfs' ${SRC} ${DST}
donc SANS ssh et avec :
SRC=/home/yt
et
DST=/media/DD
ça marche impec : ~ % lal /media/DD/yt/Téléchargements
total 1945344
drwxr-xr-x 2 yt yt 4096 2012-01-03 08:44 .
drwxr-xr-x 68 yt yt 4096 2012-01-03 08:50 ..
-rw-rw-r-- 1 yt yt 875560960 2012-01-03 08:44
debian-live-6.0.3-amd64-xfce-desktop.img
-rw-r--r-- 1 yt yt 4542781 2011-12-06 15:19 FreeGo4.5.zip
-rw-rw-r-- 1 yt yt 1111773184 2012-01-03 08:20
linuxmint-201109-xfce-dvd-64bit.iso
-rw-r--r-- 1 yt yt 104054 2011-12-06 11:03 m3u4radiotray.zip
-rw-r--r-- 1 yt yt 26112 2011-12-06 11:01 Nikon NX2 Product Key.doc
~ %
C'est peut-être un problème d'UTF-8 forme normale décomposée :
http://www.generation-nt.com/repons...2#23054901
Si ça se trouve, les fichiers ont été transférés, mais le Mac ne sait
pas les lire.
Rajoute l'option "-v" à rsync ; ça te permettra au moins de voir s'ils
sont transférés.
Vide le répertoire destination avant.
Bon, c'est tout-à-fait possible MAIS :
- le dossier "Téléchargements" est bien créé, des fichiers y sont même
déposés : FreeGo4.5.zip et Nikon NX2 Product Key.doc
- les fichiers non apparemment copiés ne comportent aucun caractère
diacritique :
debian-live-6.0.3-amd64-xfce-desktop.img
linuxmint-201109-xfce-dvd-64bit.iso
m3u4radiotray.zip
unetbootin-mac-563.zip
c'est tout de même assez con ce que relate Paul Gaborit dans ton URL...
bon, il y a une solution simple pour vérifier, je crée, sur xubuntu un
dossier Downloads, donc sans accents et je vois, si ça arrange les
choses - ou pas.
non, ce n'est pas ça because, cette fois-ci (troisième essai) j'ai :
debian-live-6.0.3-amd64-xfce-desktop.img
un fichier de 875,6 Mo d'après Mac OS X Lion et de 835 Mo d'après
Xubuntu....
en ce moment rsync upload linuxmint-201109-xfce-dvd-64bit.iso
qui est nommé :
.linuxmint-201109-xfce-dvd-64bit.iso.ZF9KGW
dans l'attente de la complétion.
peut-être est-ce du à une perte momentanée de ma connexion WiFi ???
xubuntu m'indique assez souvent que j'ai perdu la connexion pour la
rétablir prequ'aussi tôt...
chiers-entraide-3919351.html?page=2#23054901>
voilà ce qu'il se passe sur Mac OS X Lion :
imyt% lal /Users/yt/Downloads/Dell/yt/Te<0301>le<0301>chargements/
total 3890448
drwxr-xr-x 6 yt staff 204 3 jan 14:19 .
drwxr-xr-x 93 yt staff 3162 3 jan 13:46 ..
-rw------- 1 yt staff 1005846528 3 jan 14:41
.linuxmint-201109-xfce-dvd-64bit.iso.2F9KGW
-rw-r--r-- 1 yt staff 4542781 6 déc 15:19 FreeGo4.5.zip
-rw-r--r-- 1 yt staff 26112 6 déc 11:01 Nikon NX2 Product
Key.doc
-rw-rw-r-- 1 yt staff 875560960 3 jan 08:44
debian-live-6.0.3-amd64-xfce-desktop.img
linuxmint et debian-live sont bien uploadés.
imyt% lal /Users/yt/Downloads/Dell/yt/Te<0301>le<0301>chargements/
ls: /Users/yt/Downloads/Dell/yt/Téléchargements/: No such file or
directory
MAIS, quand l'upload est terminé, rsync, qui ne doit pas récupéré le
"bon" dossier "Téléchargements" le supprime et en crée un autre vide :
imyt% lal /Users/yt/Downloads/Dell/yt/Te<0301>le<0301>chargements/
total 0
drwxr-xr-x 2 yt staff 68 3 jan 11:25 .
drwxr-xr-x 93 yt staff 3162 3 jan 14:44 ..
du coup, j'essaie une bidouille sur xubuntu, je crée un dossier
"Downloads" où je mets le contenu de "Téléchargements" et je remplace ce
dossier par un symlink vers "Downloads".
pour l'instant, sur iMac, j'ai le même contenu :
imyt% lal /Users/yt/Downloads/Dell/yt/Downloads
total 1719016
drwxrwxr-x 5 yt staff 170 3 jan 14:50 .
drwxr-xr-x 94 yt staff 3196 3 jan 14:49 ..
-rw------- 1 yt staff 268959744 3 jan 14:56
.debian-live-6.0.3-amd64-xfce-desktop.img.uN5GvV
-rw-r--r-- 1 yt staff 4542781 6 déc 15:19 FreeGo4.5.zip
-rw-r--r-- 1 yt staff 26112 6 déc 11:01 Nikon NX2 Product
Key.doc
imyt% lal /Users/yt/Downloads/Dell/yt/Te<0301>le<0301>chargements/
total 1719016
drwxrwxr-x 5 yt staff 170 3 jan 14:50 .
drwxr-xr-x 94 yt staff 3196 3 jan 14:49 ..
-rw------- 1 yt staff 268959744 3 jan 14:56
.debian-live-6.0.3-amd64-xfce-desktop.img.uN5GvV
-rw-r--r-- 1 yt staff 4542781 6 déc 15:19 FreeGo4.5.zip
-rw-r--r-- 1 yt staff 26112 6 déc 11:01 Nikon NX2 Product
Key.doc
imyt%
ce qui me semble encore bizarre est que j'ai un dossier "Bibliothèque
calibre" qui ne pose pas problème(il faut dire que le "è" n'est pas
transformé en truc du genre e
--
« Il n'y a pas de hasards, il n'y a que des rendez-vous. »
(Paul Eluard)