From 266325d796037a1d0da2ad2e4aee6091d5da96ac Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 4 Mar 2011 10:51:34 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0geonetwork=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E7=BC=A9=E7=95=A5=E5=9B=BE=E7=9A=84=E5=A4=87=E4=BB=BD=E4=B8=8E?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E5=8A=9F=E8=83=BD=EF=BC=8C=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E4=B8=AD=E7=9A=84id=E5=92=8Cuuid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/md-thumb-backup.php | 33 +++++++++++++++++++++++++++++++++ tools/md-thumb-restore.php | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100755 tools/md-thumb-backup.php create mode 100755 tools/md-thumb-restore.php 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