mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
'v3.8.1.1'
This commit is contained in:
@@ -57,7 +57,7 @@ public class Db_cmd_backup implements Gfo_invk {
|
||||
return this;
|
||||
}
|
||||
@gplx.Internal protected Db_cmd_backup InitVars() {
|
||||
String dteStr = DateAdp_.Now().XtoStr_fmt(dteFmt);
|
||||
String dteStr = Datetime_now.Get().XtoStr_fmt(dteFmt);
|
||||
bkpFilName = String_.Format(bkpFilNameFmt, dbName, dteStr);
|
||||
bkpFil = bkpDir.GenSubFil(bkpFilName);
|
||||
cmdText = String_.Format("\"{0}\" -u {1} -p{2} {3} > {4}", exeUrl.Xto_api(), usr, pwd, dbName, bkpFil.Xto_api());
|
||||
|
||||
@@ -19,7 +19,7 @@ package gplx.dbs.utls; import gplx.*; import gplx.dbs.*;
|
||||
import org.junit.*;
|
||||
public class Db_cmd_backup_tst {
|
||||
@Test public void Basic() {
|
||||
Tfds.Now_enabled_y_();
|
||||
Datetime_now.Manual_y_();
|
||||
Db_cmd_backup bkpWkr = Db_cmd_backup.new_()
|
||||
.ExeUrl_(Io_url_.new_any_("C:\\mysql\\mysqldump.exe"))
|
||||
.BkpDir_(Io_url_.new_any_("C:\\bkp\\"))
|
||||
|
||||
Reference in New Issue
Block a user