vzmigrate: call rsync with --numeric-ids option
authorAndrey Mirkin <major@openvz.org>
Tue, 8 May 2007 09:00:33 +0000 (13:00 +0400)
committerKir Kolyshkin <kir@openvz.org>
Tue, 8 May 2007 09:00:33 +0000 (13:00 +0400)
http://bugzilla.openvz.org/show_bug.cgi?id=494

bin/vzmigrate.in

index b069631..52dd512 100755 (executable)
@@ -428,7 +428,7 @@ if ! $SSH "root@$host" "vzctl quotaon $VEID"; then
 fi
 
 log 1 "Syncing private"
-if ! rsync -aH --delete --progress \
+if ! rsync -aH --delete --progress --numeric-ids \
                "$VE_PRIVATE" "root@$host:${VE_PRIVATE%/*}" | \
                grep "% of" | awk -v ORS="\r" '{print $10}'; then
        log 0 "Failed to sync VE private areas"
@@ -482,7 +482,7 @@ fi
 if [ "$state" = "running" ]; then
        log 2 "Syncing private (2nd pass)"
        time_rsync2=$(date +%s.%N)
-       if ! rsync -aH --delete \
+       if ! rsync -aH --delete --numeric-ids \
                        "$VE_PRIVATE" "root@$host:${VE_PRIVATE%/*}"; then
                log 0 "Failed to sync VE private areas"
                undo_source_stage