Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy file in case to backup/restore .
Message
De
14/03/2001 21:09:45
 
 
À
13/03/2001 19:31:17
Jacky Yuen
Myth Group Computer Technology
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00484688
Message ID:
00485140
Vues:
10
>Hi all ,
>Have u guys experience the problem about backup/restore the database ?
>In case of my program will change to resell version ,I wanna let the user can config the path of the backup directory .
>Now I only use stupid "copy c:\project\*.d* e:" .
>And it's cannot config by user .
>And the filename may change to abcdef~1.abc .
>Beside of using API ,any idea ?
>regards ,
>JK



I would suggest you open the backup directory table and append the data from current.

This can avoid the filename, both already exist.
and you can also backup even the file is in use by other user.

For example,
use backThu\myTable IN 0 ALIAS BkMyTable EXCL
SELECT BkMyTable
ZAP
APPEND FROM MyTable
USE in BkMyTable

Although The backup time would be longer, it would ensure the data is copied.
There maybe some unexpected error such as original data file corrupted.
COPY FILE will fail but append data from it works.
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform