change output text & add mkdir
This commit is contained in:
parent
ec9e709607
commit
9bbc22af42
|
@ -15,7 +15,7 @@ cat "$oneline" >> dataset.txt;
|
||||||
uuid=`cat "$oneline"`;
|
uuid=`cat "$oneline"`;
|
||||||
if [ -e $uuid.txt ]
|
if [ -e $uuid.txt ]
|
||||||
then
|
then
|
||||||
echo "do nothing! uuid重复?"
|
echo "do nothing! uuid重复或后面有空格:$uuid"
|
||||||
else
|
else
|
||||||
find -L "${oneline%uuid.txt}" -exec du -b -s {} \; -exec ./dir_output.sh "{}" \; >$uuid.txt
|
find -L "${oneline%uuid.txt}" -exec du -b -s {} \; -exec ./dir_output.sh "{}" \; >$uuid.txt
|
||||||
echo $uuid
|
echo $uuid
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
print $dir."\n";
|
print $dir."\n";
|
||||||
$dir=$backup_dir.trim($duuid2[1]);
|
$dir=$backup_dir.trim($duuid2[1]);
|
||||||
@rrmdir($newdir);
|
@rrmdir($newdir);
|
||||||
|
mkdir($newdir,0700,true);
|
||||||
rename($dir,$newdir);
|
rename($dir,$newdir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue