[x] Navigation

[x] Languages

[x] Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

[x] Downloads (Top)

BACKUP.txt
Als Dragonfly CMS Einsteiger bist Du mit Deinen Fragen hier genau richtig.

Vorheriges Thema anzeigen :: Nächstes Thema anzeigen  
Autor Nachricht
Ertan
Webmaster
Webmaster

Offline Offline
Dabei seit: Mar 19, 2004
Beiträge: 1264
Wohnort: Germany
BeitragVerfasst am: 14.02.2006 13:27
Titel: BACKUP.txt

PHP:
/**
* CPG Dragonfly CMS
* Copyright (c) 2004-2005 by CPG-Nuke Dev Team, www.dragonflycms.com
* Released under the GNU GPL version 2 or any later version
* $Id: BACKUP.txt,v 1.5 2005/02/02 23:48:05 trevor Exp $
*/

If you have SSH access to your webspace then it's easy to create a backup

Login to the server through SSH and browse to your public_html

For example:

ls /home/MYNAME/public_html

Create a backup of your '
admin' directory to a compressed file:

tar czvpf admin.tar.gz admin

This won'
t include "dotfiles" (the files or directories with names starting
with a dot
). To tar everything:

tar cvzf ../website.tgz * .[a-zA-Z]* *.[a-zA-Z]*

This will backup all of your files, but be aware that this file is publicly
available
, so it's best to pack it somewhere else OR move (mv) the file

When you move the file outside public_html:

mv website.tgz ../website.tgz

Or make the backup somewhere else like:

tar cvzf /home/MYNAME/website.tgz * .[a-zA-Z]* *.[a-zA-Z]*


Of course you can also restore the backup by using the command:

tar -xvzf website.tgz


Note: It doesn'
t matter if you use the file extension 'tar.gz' OR 'tgz'


Backup MySQL Database
---------------------

You can backup/restore your database easily through SSH

To create a backup
:

mysqldump -f -hlocalhost -u<USERNAME> -p<PASSWORD> <DBNAME> --add-drop-table
| gzip -9c >/home/MYNAME/mysqlbackup.sql.gz

To restore the gzipped backup
:

gunzip < mysqlbackup.sql.gz | mysql -u<USERNAME> -p<PASSWORD> <DBNAME>

You can also restore a normal .sql file:

mysql -u<USERNAME> -p<PASSWORD> <DBNAME> < mysqlbackup.sql

Don
't forget to replace<USERNAME>, <PASSWORD> and <DBNAME> with your database
settings


No SSH Access
-------------

If you don'
t have SSH access it's no problem. Maybe you have luck and you can
run exec() or system() commands through PHP to accomplish above tasks

exec('
<command>');
?>

Of course replace <command> with one of the above mentioned commands and try to
run the script (in public_html, example: mydomain.tld/db_backup.php)

_________________
.: USE THE FORCE :.
Helft mit ! Keine Unbeantworteten Beiträge mehr

Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)


Zuletzt bearbeitet von Ertan am 24.02.2006 20:54, insgesamt einmal bearbeitet
Nach oben
Benutzer-Profile anzeigen E-Mail an diesen Benutzer senden Website dieses Benutzers besuchen Bildergalerie
Golem
Übersetzer
Übersetzer

Offline Offline
Dabei seit: Nov 13, 2004
Beiträge: 26
Wohnort: Mannheim
BeitragVerfasst am: 15.02.2006 00:45
Titel: Re: BACKUP.txt

PHP:


Golem please enter your server specs in your user profile! traurig
Nach oben
Benutzer-Profile anzeigen E-Mail an diesen Benutzer senden Website dieses Benutzers besuchen
Ertan
Webmaster
Webmaster

Offline Offline
Dabei seit: Mar 19, 2004
Beiträge: 1264
Wohnort: Germany
BeitragVerfasst am: 19.02.2006 16:46
Titel: Re: BACKUP.txt

tnx again

_________________
.: USE THE FORCE :.
Helft mit ! Keine Unbeantworteten Beiträge mehr

Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Nach oben
Benutzer-Profile anzeigen E-Mail an diesen Benutzer senden Website dieses Benutzers besuchen Bildergalerie
Beiträge der letzten Zeit anzeigen:   
Neues Thema eröffnen    Neue Antwort erstellen    Druckversion    Foren-Übersicht ›  Erste Schritte mit Dragonfly CMS 9.x
Seite 1 von 1
Alle Zeitangaben sind in GMT + 1 Stunden



Gehe zu:  


Du kannst keine Beiträge schreiben.
Du kannst auf Beiträge nicht antworten.
Du kannst Deine Beiträge nicht bearbeiten.
Du kannst Deine Beiträge nicht löschen.
Du kannst an Umfragen nicht mitmachen.
Du kannst keine Dateien anhängen.
Du kannst keine Dateien herunterladen.




Interactive software released under GNU GPL, Code Credits, Privacy Policy