Auto-backup -timer question.

Auto-backup -timer question.

Postby Marc Vanzegbroeck » Tue Apr 23, 2019 6:02 am

Hi,

According to the problem I had with
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=37039

I have create a little program to make a SQL-backup.
I want to do a backup every hour. Each time he create another file-name, so there is no overwrite. Now I keep 30 versions of a backup
Now is my question, what is the best.
Calling each time the program with Window Schedule, or start the program, and create a backup each hour with timer in FW?
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Auto-backup -timer question.

Postby Otto » Tue Apr 23, 2019 10:30 am

Hello Marc,
are you using an inhouse server or is the SQL database hosted somewhere.
Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: Auto-backup -timer question.

Postby Marc Vanzegbroeck » Tue Apr 23, 2019 10:52 am

Otto,

I use it on a NAS with MariaDB of a customer that had the Hack-problem.
Now I installed the backup-program on a PC, and start the backup with Windows Schedule, that create it on the local harddisk.
It's working fine now :D
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Auto-backup -timer question.

Postby nageswaragunupudi » Tue Apr 23, 2019 12:39 pm

In my opinion, Windows Schedule is better.

For backup, FWH has its own built-in backup and restore methods, which are quite fast.
Code: Select all  Expand view  RUN
#include "fivewin.ch"

function Main()

   local oCn
   
   oCn := maria_Connect( <server>, <db>, <user>, <pw> )
   oCn:BackUp( [<db>], <cDstFile> )
   oCn:Close()
   
return nil
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10662
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 35 guests