- $exec = sprintf($dump_exec, $name, $owner.$name);
-
- if ($owner!='root' && file_exists("$dump_path/$owner$name.sql.gz")) {
+ if (!is_link($dump_path.'/'.$owner)) {
+ symlink($partition_path.'/'.substr($owner,0,1).'/'.$owner, $dump_path.'/'.$owner);
+ }
+ if (!is_dir(readlink($dump_path.'/'.$owner))) {
+ mkdir(readlink($dump_path.'/'.$owner));
+ }
+ `fs sa $dump_path/$owner/ system:anyuser none`;
+ `fs sa $dump_path/$owner/ system:authuser none`;
+ if ($owner == 'root') {
+ `fs sa $dump_path/$owner/ system:sql-backup none`;
+ }
+ $exec = sprintf($dump_exec, $name, $owner.'/'.$name);
+/*
+ if ($owner != 'root' && file_exists("$dump_path/$owner/$name.sql.gz")) {