diff --git a/tools/md-thumb-backup.php b/tools/md-thumb-backup.php new file mode 100755 index 00000000..be76c453 --- /dev/null +++ b/tools/md-thumb-backup.php @@ -0,0 +1,33 @@ +#!/usr/bin/php +0) + { + $dir=$data_dir.sprintf('%05d',floor(($duuid2[0]+0.1)/100)*100).'-'.sprintf('%05d',ceil(($duuid2[0]+0.1)/100)*100-1)."/".$duuid2[0]; + print $dir."\n"; + $newdir=$backup_dir.trim($duuid2[1]); + rename($dir,$newdir); + } + } +?> \ No newline at end of file diff --git a/tools/md-thumb-restore.php b/tools/md-thumb-restore.php new file mode 100755 index 00000000..77e30a30 --- /dev/null +++ b/tools/md-thumb-restore.php @@ -0,0 +1,33 @@ +#!/usr/bin/php +0) + { + $newdir=$data_dir.sprintf('%05d',floor(($duuid2[0]+0.1)/100)*100).'-'.sprintf('%05d',ceil(($duuid2[0]+0.1)/100)*100-1)."/".$duuid2[0]; + print $dir."\n"; + $dir=$backup_dir.trim($duuid2[1]); + rename($dir,$newdir); + } + } +?> \ No newline at end of file