Andreas Pakulat schrieb:
Und noch eine: Wie kann ich backup_script mit nem Remote-Host koppeln um
meine DB's auf dem Remote-Host Versions-Unabhaengig zu speichern
(my|psql-dump nutzen)? Oder geht das gar nicht, ausser ich lasse auf dem
Remote-Host einen entsprechenden Cronjob laufen?
sorry, die Frage verstehe ich nicht ganz. Das backup_script wird direkt
vor dem kopieren der Daten gestartet. D.h. es würde zunächst ein DB-Dump
gemacht werden und anschliessend sicherst du nur das Dump-File.
In der Man-Page ist ein Beispiel dafür drin:
"backup_script /usr/local/bin/backup_database.sh db_backup/
In this example, we specify a script or program to run. This script
should simply create files and/or directories in it's current working
directory. rsnapshot will then take that output and move it into the
directory specified in the third column.
Please note that whatever is in the destination directory will be
completely deleted and recreated. For this reason, rsnapshot prevents
you from specifying a destination directory for a backup_script that
will clobber other backups.
So in this example, say the backup_database.sh script simply runs a
command like:
#!/bin/sh
mysqldump -uusername mydatabase > mydatabase.sql
rsnapshot will take the generated ``mydatabase.sql'' file and move it
into the <snapshot_root>/<interval>.0/db_backup/ directory. On
subsequent runs, rsnapshot checks the differences between the files
created against the previous files. If the backup script generates the
same output on the next run, the files will be hard linked against the
previous ones, and no additional disk space will be taken up."
PS: OT, aber wenn ich schon dabei bin: Gibts rsync(d) auch fuer
Windows?
ja, in Verbindung mit Cygwin. Auf diese Weise sichere ich das Windows-Notebook
meiner Frau.
Nee, ich glaub da streikt mein Bruder, obwohl - abwarten und Tee
trinken...
warum sollte er da streiken? Cygwin besteht im Idealfall nur aus einer
einzigen DLL. Du musst ja nicht gleich das ganze Paket installieren.
Gruß,
Jörn
--
Haeufig gestellte Fragen und Antworten (FAQ):
http://www.de.debian.org/debian-user-german-FAQ/
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)