1 Rsync error:
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1518)
According to the experience of others, rsync error: some files/attrs were not transferred and http://www.lingzhong.cn/tech/23765.htm
Method 1 is to modify the configuration file, and method 2 is to change the permissions.
The first one was a bit of a hassle, the second one was too much.
At this point, run the sync again,
linlf@ccrfox247:~/project/man$ ./transfer-cuda90.sh
[email protected]'s password:
sending incremental file list
rsync: send_files failed to open "/home/linlf/project/nohup.out": Permission denied (13)
sent 20,428,254 bytes received 232 bytes 1,634,278.88 bytes/sec
total size is 211,679,681,443 speedup is 10,361.99
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
List that file cannot be synchronized. The original owner and group of this file are root, but I synchronized the past user is a normal user, not root, so I reported an error.
ls -lh /home/linlf/project/nohup.out
-rw------- 1 root root 207K 6月 14 17:27 /home/linlf/project/nohup.out
It’s also easy to change the file permissions to my own:
sudo chown linlf /home/linlf/project/nohup.out
sudo chgrp linlf /home/linlf/project/nohup.out
Finally, modify the permissions of the folders to be synchronized altogether:
sudo chown -R linlf /home/linlf/project
sudo chgrp -R linlf /home/linlf/project
Re-run the script:
rsync -avz /home/linlf/project [email protected]:/home/linlf
Done