X-Git-Url: http://andersk.mit.edu/gitweb/sql.git/blobdiff_plain/f3e7245a65d1e3c2a7462aecc0b450507c05469f..562fda3a64d1be930e5bed51464ea30c525bc566:/libexec/afs-run-backup.php diff --git a/libexec/afs-run-backup.php b/libexec/afs-run-backup.php index 6c9b75d..64cadd1 100755 --- a/libexec/afs-run-backup.php +++ b/libexec/afs-run-backup.php @@ -65,21 +65,12 @@ foreach($databases as $name=>$info) { `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")) { - if (!BACKUP_CRON) - printf("Saving old dump file: %s\n", - "$dump_path/$owner/$name.sql.gz"); - rename("$dump_path/$owner/$name.sql.gz", "$dump_path/OLD/$name.sql.gz"); - } -*/ if (!BACKUP_CRON) printf("Dumping %d of %d / %d%% (%s):\n", $i_database, $stat['nDatabases'], $i_database/$stat['nDatabases']*100, $name); - //printf("Executing $exec\n"); $time[$name][0] = microtime(true); $dump_proc = popen($exec, 'r');