我想将文件从服务器复制到已安装在服务器上的 NFS。
为此,我配置了一个 crontab 将这些文件复制到 NFS。通过手动输入命令,文件已成功复制,但通过使用 crontab 自动化主题,它总是告诉我 Error: bad username; while reading /etc/crontab
这是 crontab 配置:
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test …Run Code Online (Sandbox Code Playgroud)