Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
kingofcomedy

BackUp - Script "optimieren"

Recommended Posts

Hallo,

ich lasse jede Nacht um 4 Uhr per Script ein BackUp meiner kompletten Datenbank machen.

Das Script sieht so aus:

exec("mysqldump -u DBUSER -pPASSWORT --add-drop-table -c DBNAME >dump_".date('Ymd').".sql");

exec("gzip dump_".date('Ymd').".sql");

Frage: Wie kann ich

1. alle Tabellen BIS AUF EINE bestimmte sichern lassen?

2. nur eine bestimmte Tabelle sichern lassen?

Danke.

Gruss,

Thorsten

Edited by kingofcomedy

Share this post


Link to post

Interessant,

ist das per Cron-.Job, oder wie ????

Erklär doch mal genauer, wie Du sowas machst..

danke

Ja, richtig, das wird per CronJob gemacht. Jede Nacht um 4 Uhr wird eine php-Datei mit obigem Code aufgerufen und erstellt ein BackUp. :)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×