ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL Client/Server functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
<Connection variable>.ExecuteScheduledBackup (Function)
In french: <Variable Connexion>.ExécuteSauvegardePlanifiée
HFSQL Client/ServerAvailable only with this kind of connection
Forces the execution of a scheduled backup. The scheduled backup is run during the call to the function instead of being run according to its scheduling.
Example
// Description de la connexion
ConnexionBase is Connection

hSvg is hBackupDescription
hSvg.WithIndex = False // Sauvegarde sans index
hSvg.Source = ConnexionBase.BaseDeDonnées
hSvg.Description = ConnexionBase.BaseDeDonnées
hSvg.PlanificationComplète.Mois = "12"
hSvg.PlanificationComplète.Heure = "22"
hSvg.PlanificationDifférentielle.Mois = "12"
hSvg.PlanificationDifférentielle.Heure = "23"
// Création de la sauvegarde planifiée
ConnexionBase.AjouteSauvegardePlanifiée(hSvg)
// Exécution immédiate
IF ConnexionBase.ExécuteSauvegardePlanifiée(hSvg.Identifier, False) = False THEN
	Error("Echec de <connexion>.SauvegardePlanifiée (sauvegarde complète): " + ...
			HErrorInfo(hErrFullDetails))
END
Syntax
<Result> = <Connection>.ExecuteScheduledBackup(<Backup identifier> [, <Type of backup>])
<Result>: Boolean
  • True if the scheduled backup was immediately triggered,
  • False if an error occurred.
<Connection>: Connection variable
Name of the Connection variable that describes the connection for which the scheduled backup must be performed.
<Backup identifier>: Integer
Identifier of the scheduled backup to run.
<Type of backup>: Optional boolean
Type of backup to perform:
  • True (default value): Differential backup.
  • False: Full backup.
Remark: A differential backup can be performed only if the backup task includes a differential scheduling.
Component: wd300hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/06/2023

Send a report | Local help