Eu estou tentando fazer o backup de diretórios $ HOME / DATA, $ HOME / HW, $ HOME / CODE e dois arquivos .bash em / Volumes / my_flash /. Aqui está o arquivo backup.bash que eu usei para fazer isso:
rsync -rp $HOME/DATA /Volumes/my_flash/
rsync –rp $HOME/.bash* /Volumes/my_flash/
rsync –rp $HOME/CODE /Volumes/my_flash/
Mas continuo recebendo esses erros mesmo depois que mudei o proprietário e o grupo my_flash para meu nome de usuário e minha equipe. Por favor, diga-me o que devo fazer para evitar esse erro.
skipping directory /Users/juejunyang/DATA
sent 21 bytes received 20 bytes 82.00 bytes/sec
total size is 0 speedup is 0.00
rsync: link_stat "/Users/juejunyang/HW/HW_3/?\#200\#223vp" failed: No such file or directory (2)
rsync: mkstemp "/Volumes/my_flash/..bash_history.F7g98G" failed: Permission denied (13)
rsync: mkstemp "/Volumes/my_flash/..bashrc.sFFh8o" failed: Permission denied (13)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-45/rsync/main.c(992) [sender=2.6.9]
rsync: link_stat "/Users/juejunyang/HW/HW_3/?\#200\#223vp" failed: No such file or directory (2)
skipping directory /Users/juejunyang/CODE
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-45/rsync/main.c(992) [sender=2.6.9]
rsync: link_stat "/Users/juejunyang/HW/HW_3/?\#200\#223vp" failed: No such file or directory (2)
skipping directory /Users/juejunyang/HW
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-45/rsync/main.c(992) [sender=2.6.9]
Tags permissions bash rsync unix