cmd/sync: support existing
and ignore-existing
flag
#3566
Merged
existing
and ignore-existing
flag
#3566