Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Seeking Alternative to COPY FILE Command
Message
De
27/11/2000 10:06:20
 
 
À
25/11/2000 23:14:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00444304
Message ID:
00445666
Vues:
33
Hi Charles,
Since you brought up the subject of the difficulty of copying open files, here is my strategy:
Of course it would be better if no other user were using the file when we try to copy. However, it is not always possible to get the file in EXCLUSIVE mode. Therefore, the best compromise, IMO, is to run the backup at night when few users are likely to be on the system. Then use a DOS command to COPY the file (or something similar to a DOS command, such as the API call Walter suggested or FSO as Alex suggested) to copy the file to another location and back it up from there. There is a chance that the the copy will not be good because someone is using the dbf and some data are cached. My architecture has the ability to know if it has the database in exclusive mode. If it does not have the database in exclusive mode, we must assume that the backup may not have integrity.
So it's not a perfect system, but it's pretty good, and we can know when a backup was made that may not be good (because some user may have been caching data when the backup was made.)
I don't favor VFP COPY TO or APPEND FROM style backup bacause it's too slow and it does not prevent the possibility of loss of data integrity.
Regards, Chaim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform