Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>ddbackup()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ddBackup()
Perform a backup of all the database
------------------------------------------------------------------------------
Syntax:

     ddBackup( [<nPacker>], [<cPath>],
                      [<cBackupName>] ) --> lRet

Parameters:

     <nPacker>  Packer to use for the backup
     #include "dfBackup.ch"
     +----------------------+
     | #define     | Valore |
     |-------------+--------|
     | DDBKP_PKZIP |   0    | --> DEFAULT
     | DDBKP_ARJ   |   1    |
     | DDBKP_RAR   |   2    |
     +----------------------+
     <cPath>    Path to use for make the backup
     <cBackupName> Backup name. DEFAULT "DDBACKUP"

Returns:

     <lRet>        If .T. the backup is make successfull

Description:

     Perform a backup of all the database

Example:

     . Example 1
     
     // Backup with the default
     IF ddBackup()
        dbMsgErr("Backup successfull")
     ENDIF
     
     
     . Example 2
     
     // Backup with RAR
     #include "dfBackup.ch"
     IF ddBackup( DDBKP_RAR )
        dbMsgErr("Backup successfull")
     ENDIF
     
     
     . Example 3
     
     // Backup with RAR and backup in drive B
     #include "dfBackup.ch"
     IF ddBackup( DDBKP_RAR, "B:\" )
        dbMsgErr("Backup successfull")
     ENDIF
     
     
     . Example 4
     
     // Backup with all the packer
     #include "dfBackup.ch"
     
     ddBackup(DDBKP_PKZIP)
     ddBackup(DDBKP_ARJ)
     ddBackup(DDBKP_RAR)

See also:

     ddRestore()

See Also: ddRestore()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson