backup.php
上传用户:gzy2002
上传日期:2010-02-11
资源大小:1785k
文件大小:3k
- <?php
- // +-------------------------------------------------------------+
- // | DeskPRO v [2.0.1 Production]
- // | Copyright (C) 2001 - 2004 Headstart Solutions Limited
- // | Supplied by WTN-WDYL
- // | Nullified by WTN-WDYL
- // | Distribution via WebForum, ForumRU and associated file dumps
- // +-------------------------------------------------------------+
- // | DESKPRO IS NOT FREE SOFTWARE
- // +-------------------------------------------------------------+
- // | License ID : Full Enterprise License =) ...
- // | License Owner : WTN-WDYL Team
- // +-------------------------------------------------------------+
- // | $RCSfile: backup.php,v $
- // | $Date: 2004/02/10 01:34:24 $
- // | $Revision: 1.11 $
- // +-------------------------------------------------------------+
- // | File Details:
- // | - DeskPRO backup instructions page (administration interface)
- // +-------------------------------------------------------------+
- error_reporting(E_ALL & ~E_NOTICE);
- require_once('./global.php');
- //Nullify WTN-WDYL Team
- admin_header('Backup', 'Backup');
- php?>
- <P><B>DeskPro does not offer a built-in backup facility.</B> However, there are
- several ways to implement a backup system that includes DeskPro's data:
- <OL>
- <LI>Use the <I>mysqldump</I> utility (that comes with MySQL) to back up the
- database DeskPro uses. The basic syntax for this is:<PRE> mysqldump -u<?php echo constant('DATABASE_USER'); ?> -p <?php echo constant('DATABASE_NAME') ?> > /path/to/backup.sql</PRE>
- You'll be prompted for the database password to complete the backup. The
- resulting file can be compressed and archived with your normal system
- backups.</LI>
- <LI>Use phpMyAdmin, a
- full-featured web-based MySQL administration interface. You can perform
- database dumps and restores with this software, along with many other
- administrative functions. Note that if you have a very large database, this
- <I>can</I> time out before the dump is complete unless you adjust your
- server's PHP configuration to permit longer runtimes. Refer to the PHP
- manual for details.</LI>
- <LI>Use MySQL, version 4.0 or greater,
- and establish a master/slave system that hosts your DeskPro database on the
- master, and backs up to the slave. This requires two systems, but with the
- addition of watchdog software and scripts to automate disaster recovery,
- you can dynamically reconfigure your applications, including DeskPro, to
- use the slave system when the master fails. You can also restore data from
- the slave if the master fails. The MySQL documentation suite has more
- details on this kind of implementation.</LI>
- </OL>
- </P>
- <P>
- Headstart Solutions Limited cannot be held responsible for data loss resulting
- from inadequate, inappropriate, improperly administered, or non-existent
- backups, whether obtained by the methods described above or by other methods.
- Verify that your backups are being completed and include <I>all</I> DeskPro
- data <I>before</I> committing the system to a production environment. If you
- are interested in Headstart Solutions Limited performing your regular backups
- for you.</P>
- <?php
- admin_footer();
- php?>