If you want to include /media folder and its subfolders in your backup (PinguyBuilder backup) it is not possible at the moment. However, there is a workaround just change the following lines
to
then
to
and
to
That way you will always have your custom made subfolder under /media. In my case was the folder named datad with a couple of links pointing to the different files/folders on my running system.
Before starting the build make sure, that you have nothing mounted under /media unless this is what you want. I need to emphasize that this option is only applicable if you are not running from the Live CD/DVD. In that case, make sure to put your Live CD/DVD to ram at boot prompt (add kernel boot option toram). Of course if you have enough ram to do that ...Otherwise you will copy the entire CD/DVD to your backup.
Code: [Select All]
mkdir -p $WORKDIR/dummysys/{dev,etc,proc,tmp,sys,mnt,media/cdrom,var}
to
Code: [Select All]
mkdir -p $WORKDIR/dummysys/{dev,etc,proc,tmp,sys,mnt,var}
then
Code: [Select All]
for d in `ls / | grep -v etc | grep -v run | grep -v tmp | grep -v sys | grep -v var | grep -v dev | grep -v media | grep -v mnt | grep -v lost+found | grep -v proc`; do
to
Code: [Select All]
for d in `ls / | grep -v etc | grep -v run | grep -v tmp | grep -v sys | grep -v var | grep -v dev | grep -v mnt | grep -v lost+found | grep -v proc`; do
and
Code: [Select All]
for d in `ls / | grep -v etc | grep -v run | grep -v tmp | grep -v sys | grep -v var | grep -v dev | grep -v media | grep -v mnt | grep -v lost+found | grep -v proc | grep -v home`; do
to
Code: [Select All]
for d in `ls / | grep -v etc | grep -v run | grep -v tmp | grep -v sys | grep -v var | grep -v dev | grep -v mnt | grep -v lost+found | grep -v proc | grep -v home`; do
That way you will always have your custom made subfolder under /media. In my case was the folder named datad with a couple of links pointing to the different files/folders on my running system.
Before starting the build make sure, that you have nothing mounted under /media unless this is what you want. I need to emphasize that this option is only applicable if you are not running from the Live CD/DVD. In that case, make sure to put your Live CD/DVD to ram at boot prompt (add kernel boot option toram). Of course if you have enough ram to do that ...Otherwise you will copy the entire CD/DVD to your backup.