#!/bin/sh
mysqldump -u root -p<%= @mysql_root_pwd %> \
    --databases gerrit | \
        gzip -9 | \
        ssh root@managesf.<%= @fqdn %> tee /root/gerritdb.sql.gz > /dev/null
tar --absolute-names -cf - \
    /home/gerrit/site_path/git \
    /home/gerrit/site_path/etc/replication.config \
    /home/gerrit/site_path/etc/ssh_host_rsa_key.pub \
    /home/gerrit/site_path/etc/ssh_host_rsa_key \
    /home/gerrit/.ssh/config \
    /home/gerrit/.ssh/id_rsa_* \
    /etc/httpd/managesf_htpasswd \
    | /usr/local/bin/bup split -r root@managesf.<%= @fqdn %>: -n gerrit

#!/bin/sh
mysqldump -u root -p<%= @mysql_root_pwd %> \
    --databases gerrit | \
        gzip -9 | \
        ssh root@managesf.<%= @fqdn %> tee /root/gerritdb.sql.gz > /dev/null
tar --absolute-names -cf - \
    /home/gerrit/site_path/git \
    /home/gerrit/site_path/etc/replication.config \
    /home/gerrit/site_path/etc/ssh_host_rsa_key.pub \
    /home/gerrit/site_path/etc/ssh_host_rsa_key \
    /home/gerrit/.ssh \
    /etc/httpd/managesf_htpasswd \
    | /usr/local/bin/bup split -r root@managesf.<%= @fqdn %>: -n gerrit

Fix gerrit backup fetched keys for replication
Fix gerrit backup fetched keys for replication

In case the replication key has been created via the managesf
endpoint then the backup simply skip then as the naming scheme
is alias_gh_projectname.key and the backup was looking only for
id_rsa*.

This patch backup the whole .ssh instead.

Change-Id: Iaf729769353812d9eee9a5f467909ee01a3c5199
