Skip to main content
1 of 3
Cheng
  • 6.9k
  • 12
  • 43
  • 42

`rsync -d --delete *.jpg` doesn't remove files that not exist on the origin location?

Say I have

Server A 
  001.jpg
  002.jpg
  a.zip

Server B
  hello.jpg

rsync -d --delete server_a:*.jpg .

It doesn't remove hello.jpg from server B, any idea how to archive this?

Cheng
  • 6.9k
  • 12
  • 43
  • 42