Previously it was synchronous:
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1650) [generator=3.1.2]
So I add the r and force parameters to the sync script.
# cat mirrors.sh
#!/bin/bash
###End an existing rsync process
killall `ps aux|grep rsync|awk -F" " '{print $11}'`
killall `ps aux|grep rsync|awk -F" " '{print $11}'`
echo Ending time `date +%F_%H%M%S` >> /tmp/rsync_process.log
echo '###################Ending time ######################' >> /tmp/rsync_process.log
#http://mirrors.ustc.edu.cn/help/rsync-guide.html
URL="rsync://mirrors.tuna.tsinghua.edu.cn"
#URL="rsync://rsync.mirrors.ustc.edu.cn/repo"
rsync -ravzPH --delete --force $URL/centos/ /data/centos/ >> /tmp/rsync_centos.log
rsync -ravzPH --delete --force $URL/epel/ /data/epel >> /tmp/rsync_epel.log
#rsync -avzPH --delete $URL/ceph/ /data/ceph >> /tmp/rsync_ceph.log
echo Completion time `date +%F_%H%M%S` >> /tmp/rsync_process.log
echo '###################Completion time ######################' >> /tmp/rsync_process.log
IO error and blade file deletion appeared synchronously
[root@mirrors tmp]# tail -f rsync_centos.log
| Service Provided by |
| neomirrors |
| |
+==================================================+
Note: This service is provided with a modified
version of rsync. For detailed information, please
visit: https://github.com/tuna/rsync
receiving incremental file list
IO error encountered -- skipping file deletion
Meanwhile another error still exists:
rsync: readlink_stat("7.7.1908/isos/x86_64/.CentOS-7-x86_64-Everything-1908.iso.RjFDl5" (in centos)) failed: Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1650) [generator=3.1.2]
Taking a closer look at the parameters of rsync, one of the options is:
Delete even if I/O errors occur
(Delete even if I/O error occurs)
[root@mirrors bin]# cat mirrors.sh
#!/bin/bash
###End an existing rsync process
killall `ps aux|grep rsync|awk -F" " '{print $11}'`
killall `ps aux|grep rsync|awk -F" " '{print $11}'`
echo Ending time `date +%F_%H%M%S` >> /tmp/rsync_process.log
echo '###################Ending time ######################' >> /tmp/rsync_process.log
#http://mirrors.ustc.edu.cn/help/rsync-guide.html
URL="rsync://mirrors.tuna.tsinghua.edu.cn"
#URL="rsync://rsync.mirrors.ustc.edu.cn/repo"
rsync -ravzPH --delete --force --ignore-errors $URL/centos/ /data/centos/ >> /tmp/rsync_centos.log
rsync -ravzPH --delete --force --ignore-errors $URL/epel/ /data/epel >> /tmp/rsync_epel.log
#rsync -avzPH --delete $URL/ceph/ /data/ceph >> /tmp/rsync_ceph.log
echo Completion time `date +%F_%H%M%S` >> /tmp/rsync_process.log
echo '###################Completion time ######################' >> /tmp/rsync_process.log
OK, so far there is no error.
Read More:
- [Solved] GVM Error: rsync: connection unexpectedly closed & rsync: read error: Connection reset by peer (104)
- [Solved] rsync Error: @ERROR: chdir failed rsync error
- Solution to gzip: stdin: invalid compressed data — format violated error in decompressing. Tgz file under Linux
- U-boot NFS download file error: loading: * * * error: File lookup fail solution
- How to Fix No default.conf file in conf.d after Installing Nginx
- Solution of device eth0 does not see to be present, delaying initialization. Error in network card under Linux
- The solution of insufficient disk space of docker in Ubuntu
- The solution to the crash loop back off error of coredns in k8s deployment
- Errors encountered when configuring static ip on Ubuntu 18.04
- Using common file upload to upload files in SSH project
- Docker pull Command Error response from daemon: Head https://registry-1.docker.io/v2/library/
- [Solved] Win10 and Linux address reading format is different (CV2. Error: opencv (4.2.0)/Io/opencv…)
- Error: loading shared libraries: cannot open shared object file: No such file or directory
- [Ubuntu] How to Solve dpkg Error: dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory
- Linux useradd Error: Creating mailbox file: File exists
- Linux Ubuntu ImportError: Libtk8.5.so: cannot open shared object file:No such file Install tkinter Library
- Chinese garbled problem when running. C file in Linux
- Error in Linux running file: bash: $’\r’: command not found
- [Solved] Cannot run program “svn” (in directory “D: xxxx”): CreateProcess error=2, the system cannot find the specified file.
- [Solved] Python Import mmcv Warning: ImportError: libGL.so.1: cannot open shared object file: No such file or directory