2. cron=1参数在gitlab-rake gitlab:backup:create命令中的含义 cron=1参数用于抑制备份脚本的所有进度输出。当你在cron作业中运行备份命令时,如果不希望输出任何进度信息(例如,在成功执行时没有任何输出),可以使用这个参数。这对于避免cron邮件的泛滥非常有用,因为这些邮件通常会在cron作业输出任何内容时发送给系统管...
Here is an example of the cron script that runs to create the backup files: root@gitlab:~/cron# cat gitlab-backup.sh #!/bin/bash this script will run nightly on gitlab.test.example.com, to backup, encrypt, and rsync to gitlab-san-1 set +x command below ensures gitlab is in a ...