billw2 / rpi-clone

A shell script to clone a booted disk.
BSD 3-Clause "New" or "Revised" License
2.56k stars 333 forks source link

Cross Filesystem Feature #34

Closed SpoddyCoder closed 7 years ago

SpoddyCoder commented 7 years ago

Hey @billw2

Nice to contribute to a very popular tool amongst the community :) As promised - some improved cross filesystem handling....

"Split rsync into two processes, one for /boot one for rest of filesystem. Added --cross-filesystems switch and made no cross filesystems default behaviour"

Tried to keep code style nice and consistent - hope you & the community find it a useful addition. This resolves: https://github.com/billw2/rpi-clone/issues/28 https://github.com/billw2/rpi-clone/issues/9

Finally - I think this update means /mnt & /media can be removed from the excludes list - will mean the empty mount dirs will appear in the clone - which is a useful NB imho and would resolve: https://github.com/billw2/rpi-clone/issues/10 Shout if you want me to submit another pull request for this.