Vkusnejsi screenshot
[mirrors/SokoMan.git] / dump_sql.php
CommitLineData
cdfce7c2
TM
1#!/usr/bin/php
2<?php
e2329917 3if(isset($_SERVER['REQUEST_METHOD'])) die('Not for you');
52cd5728 4$nodump = array('item','model','barcode','lock','transaction');
cdfce7c2 5require_once('sklad.conf.php');
7f332543
TM
6
7$ignore = '';
8$nodata = '';
9foreach($nodump as $t) {
10 $ignore .= ' --ignore-table='.DB_NAME.'.'.$t;
11 $nodata .= ' '.$t;
12}
13
14system('mysqldump -u'.DB_USER.' -p'.DB_PASS.' '.DB_NAME.$ignore);
15if($nodata != '') system('mysqldump -u'.DB_USER.' -p'.DB_PASS.' '.DB_NAME.' --skip-comments --no-data'.$nodata);
This page took 0.120139 seconds and 4 git commands to generate.