Anomalie #5160
migration23.sh : problème chown via rsync de /home
Description
Constaté avec la version du script "20130319"
Dans savescribedata()
rsync -cav --log-file $RSYNC_LOG --exclude=MailDir \
--exclude=IntegrDom --exclude=.scanned* $abc "$1/home"
Cela génère des erreurs du type :
2013/04/02 18:28:09 [25667] rsync: chown "/media/migration/scribe-0410793P/home/t/txxx.xxx/perso/.Config/Application Data/Microsoft" failed: Operation not permitted (1)
Il semble que cela concerne essentiellement "/Application Data/xxxx" et donc les répertoires avec les espaces.
avec des "{}" qui protège la variable abc, ces erreurs n'apparaissent plus :
rsync -cav --log-file $RSYNC_LOG --exclude=MailDir \
--exclude=IntegrDom --exclude=.scanned* "${abc}" "$1/home"
Related issues
Associated revisions
Consolidation du script avec la protection d'une variable
Fixes #5160 @20m
History
#1 Updated by Joël Cuissinat over 10 years ago
- Due date set to 04/12/2013
- Status changed from Nouveau to A étudier
- Assigned To set to Joël Cuissinat
- Target version set to Migration 2.3
- Start date set to 04/08/2013
- Estimated time set to 0.50 h
#2 Updated by Joël Cuissinat over 10 years ago
- Status changed from A étudier to Résolu
- % Done changed from 0 to 100
Appliqué par commit 67a7a148934141e455bc2e1f54a5b7e90db421da.
#3 Updated by Joël Cuissinat over 10 years ago
- Status changed from Résolu to Fermé