Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Seeking Alternative to COPY FILE Command
Message
De
09/02/2001 00:30:57
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00444304
Message ID:
00474319
Vues:
27
>4. I then close each table that I want to backup, use the corresponding table in the backup directory, and then append from the original.
>
>So far this seems to work great and I haven't had any problems with it.
>If anyone sees a hole in this method please let me know.

The only conceivable hole is the time it takes to accomplish the (4) above; some tables may have records added or updated before they get appended to the backup, and some others may have related records which get added or changed after the backup. This way the data set in the backup may be slightly inconsistent, i.e. the latest changes to it may be incomplete. I'm not sure if even transactions would save you from this - they would lock the tables involved, but there's still a chance that you may backup one table before a transaction, and another one after it.

Don't ask me for a solution, you asked for the hole only :)
That aside, I don't see any way around this, short of getting everybody out of the app and doing a clean backup - but then you lose the "nobody needs to get out while we do the backup".

The other shortcoming is the increase of the housekeeping you have to do if you change structures - you need to make sure everything will still work if data are restored from the backup with old structures. But then, this is the same with every method of backup.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform