git - gerrit - understanding replication or create a backup -
we've running gerrit 2.14.2 mysql backend.
now wan't mirror/backup it.
i don't understand replication feature. necessary setup full gerrit/git in same config source instance?
the other mentioned way db dump replay other machine , rsync git repository?
bye
gregor
to use replication feature need install/config replication plugin. it's part of core plugins packaged within gerrit war file , can installed running gerrit initialization (java -jar gerrit.war init). plugin mirror changes gerrit server used warm-standby backups or load-balanced mirror.
if you're interested in backup maybe running rsync/mysqldump better/simple solution. unfortunately it's necessary stop gerrit before performing backup make sure filesystem , database synchronized. need execute this:
service gerrit stop rsync -avh --delete gerrit-site/ some-location mysqldump --host=db-host --port=db-port --user=db-user --password=db-pass db-database > some-location/gerrit-dump.sql service gerrit start you can optimize time gerrit stopped running rsync first (with gerrit up), stop gerrit , execute rsync again (the second execution fast).
Comments
Post a Comment