I think I’m missing something on how to use rsync exclude with lxd-p2c. I’ve tried numerous permutations, and while the verbose flag works, the --exclude just gets ignored.
Both my LXD host and the server I am trying to migrate are running rsync 3.1.3. The server I’m trying to migrate was running 3.1.2 before and I thought that might have been the issue so I upgraded it.
My lxd2pc command looks like:
./lxd-p2c https://mylxdhost:8443 mycontainer / --rsync-args="-vv --exclude '/var/cache' --exclude '/var/log' --exclude '/usr/share/nginx/logs' --exclude '/usr/share/nginx/old-media' --exclude '/usr/share/nginx/media' " --storage=lxd2
I’m running lxd-p2c version 4.7 and my lxd host is a lxd snap install now on version 4.8