billw2 / rpi-clone

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

Adding to OPTIONAL_MNT_DIRS not working #31

Open larrym opened 8 years ago

larrym commented 8 years ago

I do not know what version of rpi-clone I'm running but the READ.ME is dated 12/21/2013.

I added 'www' at the end of OPTIONAL_MNT_DIRS but it is not created as part of the clone process.

OPTIONAL_MNT_DIRS="clone mnt sda sdb rpi0 rpi1 www"

I expected it to work since at line 387:

# Some extra optional dirs I create under /mnt
for i in $OPTIONAL_MNT_DIRS
do
        if [ ! -d $CLONE/mnt/$i ]
        then
                mkdir $CLONE/mnt/$i
        fi
done

What am I missing?

SpoddyCoder commented 7 years ago

@larrym - this feature has been removed in the 1.6 release as the /mnt and /media directories are no longer specifically excluded. If your www directory exists in the source filesystem then it should now appear in the clone automatically.

Please download & install latest rpi-clone and test. If this resolves your issue, please click close, thanks :)