Manual:Backing up a wiki/Lanthanis backup CMD/en

How it works
This batch code will export all pages of specified namespaces in an xml dump file, it will dump ldap users and domains as well as all specified files and folders in the.

Automatically all obsolete backup files will be deleted after executing this backup script.

It checks if excutables are reachable and therefore existing. Furthermore it dumps (in this example only the ldap domain and user table) your wiki database and creates a xml dump of your wiki.

You can specify the namespaces of pages you want to save in line 54.

Afterwards it counts up the sequence number and uses 7-Zip to compress all files and folders specified in the  and saves the zip file to the specified backup path with the specified file name.

You can add all folders and files you want to save and backup to the.

If there are more backup files than your specified maximum amount of backups, it deletes the obsolete ones.

In order to compress the files you want to backup a work directory is recommended.

Since the actual pages are exported by the xml dump, there is no need to dump these form the database.

However to save user accounts and data it is recommended to dump specific wiki database tables - change line 48 for this.

Further folders or files to be saved -
All files and folders to add to the backup zip file are specified here.

It needs to contain at least the xml dump file. If you dump something from the database you need to specify the database dump file too.

7-Zip uses this list to aggregate all files and folders to compress and therefore to backup. The following is an example and the first specified path is a necessity.

Disclaimer
This batch code should be used for Windows only. It is based on Darizotas Windows backup script but was strongly modified.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Therefore use this software on your own risk.