diff --git a/lib/backup/repository.rb b/lib/backup/repository.rb
index 14e59143250894a399675ef9dd9a8f20fc6c0a95..62a510f2acc216ce5d12cf3eb64ec9b3d9447a79 100644
--- a/lib/backup/repository.rb
+++ b/lib/backup/repository.rb
@@ -68,6 +68,15 @@ module Backup
           end
         end
       end
+
+      print 'Put GitLab hooks in repositories dirs'.yellow
+      gitlab_shell_user_home = File.expand_path("~#{Gitlab.config.gitlab_shell.ssh_user}")
+      if system("#{gitlab_shell_user_home}/gitlab-shell/support/rewrite-hooks.sh")
+        puts " [DONE]".green
+      else
+        puts " [FAILED]".red
+      end
+
     end
 
     protected