Ruby spare stone starts twice

I use the backup stone (4.0.1), and when I start the backup, it starts twice. I have only one fallback model:

Backup::Model.new(:pais3_prod_backup, 'PAIS 3 production server & database backup') do

  split_into_chunks_of 2000

  archive :my_archive do |archive|
    # Run the `tar` command using `sudo`
    archive.use_sudo
    archive.add "/etc"
    archive.add "/srv"
    archive.exclude "/home/map7/Backup/.tmp"
    archive.exclude "/home/map7/.cache"    
  end
end

I run it manually with the following command

backup perform -t pais3_prod_backup

Although twice as good as everyone, I have to wonder why it works twice? Where can I start debugging this?

+3
source share
1 answer

If I had to guess, make sure that your backup config.rb file does not need the / include / instance _eval model file: pais3_prod_backup (or some of them apply to all models from the models / folder).

3.x 4.x, , , . config.rb:

# Load all models from the models directory (after the above global configuration blocks)
Dir[File.join(File.dirname(Config.config_file), "models", "*.rb")].each do |model|
  instance_eval(File.read(model))
end
+4

All Articles