Quantcast
Channel: Pinguy OS Forum - All Forums
Viewing all articles
Browse latest Browse all 1646

Include media folder

$
0
0
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

mkdir -p $WORKDIR/dummysys/{dev,etc,proc,tmp,sys,mnt,media/cdrom,var}

to

mkdir -p $WORKDIR/dummysys/{dev,etc,proc,tmp,sys,mnt,var}

then

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

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

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
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.

Viewing all articles
Browse latest Browse all 1646

Trending Articles