Database backup

How to make a backup of your databases

[listfiles path=databases/]
[showif [isfile]=T]
[COPYFILE from=databases/[filename]&to=db_daily_archives/[listwords words=[filename]&delimiters=.]
[showif [index]=1][word]_[date %A_%p][/showif]
[showif [index]=2].[word][/showif]

Write a trigger to run the script 2 times a day and change the path to your DB directory. This copies all .db & .hdr files to an archive folder with the day and AM or PM. You will get a morning and evening backup of each file in your DB folder. Each week the script overwrites the files with the new ones.

Example.db would be saves as:

etc. Brian Boegershausen


Top Articles:

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

WebDNA Libraries

A list of available libraries for WebDNA...

AWS Raw WebDNA LAMP-Plus WebServer

Amazon Web Services (AWS) README for Machine Image ID...


A compilation of some user's questions...

Tips and Tricks

A list of user-submitted tips ...

Download WebDNA Applications

WebDNA applications...

Related Readings:

Cloning a Record


How many working days?

This small script finds the number of working days between two dates...

Hideif on IP range

This will show or hide stuff according to the IP...

Removing whitespace

How can I remove all whitespace entered by a user from an input box (ie card number)...

How to keep the text variable after a function has finished

By default...

Database backup

How to make a backup of your databases...