projects
/
Pman.Admin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
675c611
)
Dump.php
author
Alan Knowles
<alan@akbkhome.com>
Mon, 21 Mar 2011 10:42:34 +0000
(18:42 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 21 Mar 2011 10:42:34 +0000
(18:42 +0800)
Dump.php
patch
|
blob
|
history
diff --git
a/Dump.php
b/Dump.php
index
6704d35
..
27323ea
100644
(file)
--- a/
Dump.php
+++ b/
Dump.php
@@
-413,7
+413,13
@@
class Pman_Admin_Dump extends Pman {
$fh3 = fopen($target, 'w');
$fs = 0;
+ $done = array();
foreach($this->childfiles as $v) {
+ $source = $v[0].'/'.$v[1];
+ if (isset($done[$source)) {
+ continue;
+ }
+
$fs += filesize($v[0].'/'.$v[1]);
fwrite($fh,"mkdir -p " . escapeshellarg(dirname($this->args['dump-dir'] .'/'.$v[1])) ."\n" );
fwrite($fh,"cp " . escapeshellarg($v[0].'/'.$v[1]) . ' ' . escapeshellarg($this->args['dump-dir'] .'/'.$v[1]) ."\n" );