O Linux falha ao criar um arquivo tar para um backup

0

Então eu quero fazer um backup do git. Estou usando este script para fazer isso (aqui: link ). Mas criar o arquivo tar sempre falha no final.

root@gitlab-test git/gitlab# sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production --trace                                                                                
** Invoke gitlab:backup:create (first_time)                                                                                                                                                   
** Invoke environment (first_time)                                                                                                                                                            
** Execute environment                                                                                                                                                                        
** Execute gitlab:backup:create                                                                                                                                                               
** Invoke gitlab:backup:db:create (first_time)                                                                                                                                                
** Invoke environment                                                                                                                                                                         
** Execute gitlab:backup:db:create                                                                                                                                                            
Dumping database ... 
Dumping MySQL database gitlab_production ... [DONE]
done
** Invoke gitlab:backup:repo:create (first_time)                                                                                                                                              
** Invoke environment                                                                                                                                                                         
** Execute gitlab:backup:repo:create                                                                                                                                                          
Dumping repositories ...
 * gitlab-admin/test ... [DONE]
 * gitlab-admin/test.wiki ...  [SKIPPED]
done
** Invoke gitlab:backup:uploads:create (first_time)                                                                                                                                           
** Invoke environment                                                                                                                                                                         
** Execute gitlab:backup:uploads:create                                                                                                                                                       
Dumping uploads ... 
done
** Invoke gitlab:backup:builds:create (first_time)                                                                                                                                            
** Invoke environment                                                                                                                                                                         
** Execute gitlab:backup:builds:create                                                                                                                                                        
Dumping builds ... 
done
** Invoke gitlab:backup:artifacts:create (first_time)                                                                                                                                         
** Invoke environment                                                                                                                                                                         
** Execute gitlab:backup:artifacts:create                                                                                                                                                     
Dumping artifacts ... 
done
** Invoke gitlab:backup:lfs:create (first_time)                                                                                                                                               
** Invoke environment                                                                                                                                                                         
** Execute gitlab:backup:lfs:create                                                                                                                                                           
Dumping lfs objects ... 
done
Creating backup archive: 1469611232_gitlab_backup.tar ... tar: uploads.tar.gz: Cannot stat: No such file or directory                                                                         
tar: Exiting with failure status due to previous errors                                                                                                                                       
creating archive 1469611232_gitlab_backup.tar failed
Backup failed                    

O que estou fazendo de errado?

    
por M. Petersen 27.07.2016 / 15:15

1 resposta

0

Parece que está tentando incluir uploads.tar.gz (anexos), mas não foi encontrado.

Tente pular:

sudo -u git -H bundle exec rake gitlab:backup:create SKIP=uploads RAILS_ENV=production --trace 
    
por 27.07.2016 / 15:33