GitLab: Is the backup rake task atomic?
问题 If I make a GitLab backup using the gitlab:backup:create rake task just as someone is pushing to the repositories, will the backup process be affected? Is it necessary to shutdown GitLab before doing the backup? 回答1: The task gitlab/backup.rake itself doesn't look atomic. It calls: Rake::Task["gitlab:backup:db:create"].invoke Rake::Task["gitlab:backup:repo:create"].invoke That uses the gem activerecord: puts "Dumping database tables ... ".blue ActiveRecord::Base.connection.tables.each do |tbl