1
"gsutil rsync"명령을 실행하려고 할 때이 오류가 발생합니다. 아래 명령. VM 인스턴스에서 처음부터 Cloud SDK를 다시 설치했습니다. 적용 kubectl 구성 요소. 내가 하나의 깃발, 두 개의 깃발, 세 개의 깃발을 넣을 지 여부.rsync 명령은 명령 줄에서 최대 2 개의 인수를 허용합니다.
# gsutil rsync -r -n /var/www/html/* gs://google-storage-bucket/alpha/$(date +%F)
CommandException: The rsync command accepts at most 2 arguments. Usage:
gsutil rsync [-c] [-C] [-d] [-e] [-n] [-p] [-r] [-U] [-x] src_url dst_url
For additional help run:
gsutil help rsync
플래그를 사용하지 않더라도 비슷한 오류가 발생합니다. (대상 경로는 GS의 버전을 탑재 : // - 같은 위치)
# gsutil rsync /var/www/html/* /var/www/_backup/alpha/$(date +%F)
CommandException: The rsync command accepts at most 2 arguments. Usage:
gsutil rsync [-c] [-C] [-d] [-e] [-n] [-p] [-r] [-U] [-x] src_url dst_url
For additional help run:
gsutil help rsync
내가 비슷한 오류가 그 자체로는 gsutil rsync를 수행하려고 시도합니다.
# gsutil rsync
CommandException: The rsync command requires at least 2 arguments. Usage:
gsutil rsync [-c] [-C] [-d] [-e] [-n] [-p] [-r] [-U] [-x] src_url dst_url
For additional help run:
gsutil help rsync
WTF gsutility!
일반 RSYNC은 (안 인 gsutil을 통해) 당신은 /var/www/html
에 /var/www/html/*
을 변경해야
# rsync /var/www/html/* /var/www/_backup/alpha/$(date +%F)
rsync: change_dir#3 "/var/www/_backup/alpha" failed: No such file or directory (2)
rsync error: errors selecting input/output files, dirs (code 3) at main.c(625) [Receiver=3.0.9]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
/var/www/html/*을/var/www/html로 변경하십시오. – jarmod
감사합니다 jarmod! 내가 얼마나 바보 같은지 알게 될 때 나는 싫지만, 그것이 효과가있을 때 사랑하라! 매우 감사! – ADVPMike
답변으로 기쁜 글을 쓸 것입니다. – jarmod