backup fails running on ceph filesystem
I run gitlab from a ceph mounted filesystem. It runs from one host, i use ceph for stability only. Gitlab is stopped before i run backup, but it always fails with tar error: file changed as we read it. While i googled how to fix this i founded a tar parameter what may can help: --ignore-failed-read.
Sample:
juno gitlab # LC_ALL=C sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
Dumping database ...
Dumping PostgreSQL database gitlab_master ... [DONE]
done
Dumping repositories ...
* erp-develop/i3sys-erp ... [DONE]
* erp-develop/i3sys-erp.wiki ... [SKIPPED]
* voip-develop/kamailio-ws ... [DONE]
* voip-develop/kamailio-ws.wiki ... [SKIPPED]
* voip-develop/kamailio-asterisk-transcoder ... [DONE]
* voip-develop/kamailio-asterisk-transcoder.wiki ... [SKIPPED]
* server/i3-sip0 ... [DONE]
* server/i3-sip0.wiki ... [SKIPPED]
* erp-develop/i3sys_addons_kabeltv ... [DONE]
* erp-develop/i3sys_addons_kabeltv.wiki ... [SKIPPED]
* voip-develop/jssip ... [DONE]
* voip-develop/jssip.wiki ... [SKIPPED]
done
Dumping uploads ...
done
Creating backup archive: 1429825745_gitlab_backup.tar ... tar: repositories/erp-develop: file changed as we read it
tar: repositories: file changed as we read it
tar: uploads: file changed as we read it
creating archive 1429825745_gitlab_backup.tar failed
Backup failed