Backuplösung für Rootserver: Difference between revisions

From Q
Jump to navigation Jump to search
No edit summary
No edit summary
Line 55: Line 55:
     do
     do
     mysqldump $i --user=$USERNAME --password=$PASSWORD --host=$DBHOST $OPTS | bzip2 -c | \
     mysqldump $i --user=$USERNAME --password=$PASSWORD --host=$DBHOST $OPTS | bzip2 -c | \
    gpg --armor --encrypt --trust-model always \
        gpg --armor --encrypt --trust-model always \
         --recipient $PGPMAILUSERPUB - > $BACKUPDIR/$i-$date.SQL.bz2.gpg
         --recipient $PGPMAILUSERPUB - > $BACKUPDIR/$i-$date.SQL.bz2.gpg
     done
     done
Line 61: Line 61:
# backup all databases into one big file
# backup all databases into one big file
mysqldump --user=$USERNAME --password=$PASSWORD --host=$DBHOST $OPTS_FULLBACKUP | bzip2 -c | \
mysqldump --user=$USERNAME --password=$PASSWORD --host=$DBHOST $OPTS_FULLBACKUP | bzip2 -c | \
gpg --armor --encrypt --trust-model always \
        gpg --armor --encrypt --trust-model always \
         --recipient $PGPMAILUSERPUB - > $BACKUPDIR/FULLBACKUP-MYSQL-ALL-$date.SQL.bz2.pgp
         --recipient $PGPMAILUSERPUB - > $BACKUPDIR/FULLBACKUP-MYSQL-ALL-$date.SQL.bz2.pgp
</pre>
</pre>

Revision as of 23:27, 6 June 2006

Teil 1: MYSQL Backup erstellen

Template:Box File


Teil 2: Verschlüsselung

Template:Box File


Teil 3: Dateiübertragung

work in progress - scponly & keyauth