Linux ne parvient pas à créer un fichier tar pour une sauvegarde

0

Donc, je veux faire une sauvegarde de git. J'utilise ce script pour faire ceci (ici: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md ). Mais la création du fichier tar échoue toujours à la fin.

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                    

Qu'est-ce que je fais mal?

M. Petersen
la source

Réponses:

0

On dirait qu'il essaie d'inclure uploads.tar.gz (pièces jointes) mais il n'a pas été trouvé.

Essayez de le sauter:

sudo -u git -H bundle exec rake gitlab:backup:create SKIP=uploads RAILS_ENV=production --trace 
mabagu
la source