FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour BackUp [cCondition]
Posts: 1054
Joined: Sun Oct 09, 2005 10:41 PM
BackUp [cCondition]
Posted: Mon Mar 04, 2024 05:40 PM
Mr. Rao

Good morning, I have a database that has 60 tables and 2 of them have more than 400,000 records, when I use MariaDb BackUp, it cannot do the job, sometimes the connection is cut and other times it only loads about 100,000 records, is it possible that the BackUp has a clause (WHEN) to condition the process?, as well as:

BackUp( [source], [dest], [bProgress], [cCondition], [nRecsInBatch], [nMaxBufperSQL] )

where cCondition := "WHERE year(fecha_doc) > 2023", something like that.

Thank you for your time
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: BackUp [cCondition]
Posted: Tue Mar 05, 2024 02:43 AM
At present we did not provide backup of table with WHERE condition.
Actually, 70000 records is not a big table unless the internet connection is highly unreliable
Even if we provide WHERE clause, Restoring the table gives problems.

Let us think and come up with alternative solutions.

Meanwhile you may consider and try this method of saving full or a part of the table to DBF
Code (fw): Select all Collapse
METHOD SaveToDBF( cSql, cDbf, lForUpdate )
or Copy table to another server
Code (fw): Select all Collapse
METHOD CopyTableToServer( cTable, oDest )
oDest is the connection object to the backup server.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion