]> andersk Git - sql.git/blobdiff - libexec/afs-run-backup.php
more old code
[sql.git] / libexec / afs-run-backup.php
index 6c9b75d59681d202fa0b1da457671508334f43d6..64cadd103dac4c23da4eb33f13ead9c59c640973 100755 (executable)
@@ -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');
This page took 0.032144 seconds and 4 git commands to generate.