小编Ale*_*vic的帖子

忽略 rsync 的无可用数据 (61) 错误

有没有办法抑制 rsync 期间 prigin 更改的警告?

$ rsync --archive server::somemodule/ /dest/dir
rsync: read errors mapping "/somefile" (in somemodule): No data available (61)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1532) [generator=3.0.6]
Run Code Online (Sandbox Code Playgroud)

确实,在 rsync 运行期间更改了 somefile,但我不在乎,我希望忽略此错误。例如 find 有 -ignore_readdir_race 标志,有没有与 rsync 类似的东西?

linux unix rsync

5
推荐指数
0
解决办法
1760
查看次数

停止 systemd 作业和所有激活器

我想停止由套接字或文件或其他什么激活的作业,例如

# systemctl stop rsyslog
Warning: Stopping rsyslog.service, but it can still be activated by:
  syslog.socket
Run Code Online (Sandbox Code Playgroud)

除了追踪所有激活器并单独停止之外,有没有办法将其与所有激活器一起停止?我不想永久禁用该作业,只需暂时停止它,直到它明确启动为止。

linux systemd

5
推荐指数
1
解决办法
2271
查看次数

标签 统计

linux ×2

rsync ×1

systemd ×1

unix ×1