I'm trying to migrate centos server to a new box with rsync and I run this command in the destination server:
rsync -auHxv –numeric-ids –exclude=/etc/fstab
–exclude=/etc/sysconfig/network-scripts/* –exclude=/proc/*
–exclude=/tmp/* –exclude=/sys/* –exclude=/dev/* –exclude=/mnt/*
–exclude=/boot/* –exclude=/root/* [email protected]:/* /
And then I get this error:
Unexpected remote arg: [email protected]:/*
rsync error: syntax or usage error (code 1) at main.c(1201) [sender=3.0.6]