티스토리 뷰
- When performing an Rsync, you may encounter the error "file has vanished".
- It means that the file disappeared during the transfer.
- You can ignore it, but it keeps showing up as an error.
- This section explains how to ignore it.
There are two ways to do this.
Version Upgrade ( > 3.2.4)
- https://download.samba.org/pub/rsync/NEWS#3.2.4
- Transformed the atomic-rsync script into a python script and added the ability to ignore one or more non-zero exit codes. By default, it now ignores code 24, the file-vanished exit code. (See the support dir.)
Rsync Rwrapper
ignore "vanished files" warning
Some folks would like to ignore the "vanished files" warning, which manifests as an exit-code 24. The easiest way to do this is to create a shell script wrapper. For instance, name this something like "rsync-no24":
#!/bin/sh
/usr/bin/rsync "$@"
e=$?
if test $e = 24; then
exit 0
fi
exit $e
'OS' 카테고리의 다른 글
IFS (Internal Field Separator) 내부 필드 분리자 요약 (0) | 2023.08.29 |
---|---|
[Linux] How to check kernel logs (1) | 2023.06.08 |
[Linux] 커널(Kernel) 로그 확인 (0) | 2023.06.08 |
logratate.d: because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation (0) | 2023.03.22 |
Rsync: file has vanished: "xxx" 오류 무시하는 방법 (0) | 2023.02.13 |
Rsync: cannot delete non-empty directory (0) | 2023.02.02 |
[Linux] Rsync: How to get specific files only (0) | 2021.05.18 |
[Linux] Rsync: 특정 파일만 가져오기 (0) | 2021.05.18 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- iTerm2
- Linux
- 엔시블
- groovy
- Ansible
- Nexus
- DevOps
- rundeck
- rsync
- 엔서블
- ssl
- 리눅스
- JVM
- Playbook
- PostgreSQL
- nginx
- Thread Dump
- Jenkins
- 파이프라인
- 플레이북
- Config History
- Password manager
- 데브옵스
- 젠킨스
- vagrant
- Shell Script
- openssl
- 쓰레드덤프
- URL Encoding
- Docker
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함