The script excludes partitions mounted under /host and /media, but it doesn't currently check for partitions under other mountpoints. This potentially can result in an out of space error during the rsync copy as it will copy data from these partitions (and they are not considered by the checks that ensure the target partition is big enough).
The script should be changed to monitor for this and reject with a warning to unmount prior to migrating.
Note the rsync -x option (one file system) cannot be used as this also excludes separate virtual disks for /home.
The script excludes partitions mounted under /host and /media, but it doesn't currently check for partitions under other mountpoints. This potentially can result in an out of space error during the rsync copy as it will copy data from these partitions (and they are not considered by the checks that ensure the target partition is big enough).
The script should be changed to monitor for this and reject with a warning to unmount prior to migrating. Note the rsync -x option (one file system) cannot be used as this also excludes separate virtual disks for /home.