geerlingguy / rpi-clone

A shell script to clone a booted disk on a Raspberry Pi.
https://rpi-clone.jeffgeerling.com/
BSD 3-Clause "New" or "Revised" License
172 stars 10 forks source link

—exclude examples #11

Closed mariomaz87 closed 3 months ago

mariomaz87 commented 3 months ago

Hi, I’m reading the documentation but I don’t understand the usage of the exclude command. I want to exclude some folders from a clone, but how can I select them? I’m familiar with rclone —exclude but in this case I would have also to specificy the partition and I don’t know how. Thanks!

fmarzocca commented 3 months ago

Maybe I didn't understand your problem, but this is how I am dealing with excluding folders:

rpi-clone sda -u --exclude=/home/john/myfolder

mariomaz87 commented 3 months ago

Maybe I didn't understand your problem, but this is how I am dealing with excluding folders:

rpi-clone sda -u --exclude=/home/john/myfolder

Thanks. This answer my problem :)

framps commented 3 months ago

This answer my problem :)

Great. But please close this issue now :wink: