Skip to main content
use full rsync command, which shows the switch to add input from pipe
Source Link

Try

ssh -qx [email protected] " ls"ls -t /path/to/logs | head -6 "6" | rsync ..--files-from=- -avHS root@example.org:/path/to/logs/ . 

Try

ssh -qx [email protected] " ls -t /path/to/logs | head -6 " | rsync .... 

Try

ssh -qx [email protected] "ls -t /path/to/logs | head -6" | rsync --files-from=- -avHS root@example.org:/path/to/logs/ . 
deleted 5 characters in body
Source Link
αғsнιη
  • 41.9k
  • 17
  • 75
  • 118

did you try ssh -qx [email protected] " ls -t /path/to/logs | head -6 " | rsync.... ?Try

ssh -qx [email protected] " ls -t /path/to/logs | head -6 " | rsync .... 

did you try ssh -qx [email protected] " ls -t /path/to/logs | head -6 " | rsync.... ?

Try

ssh -qx [email protected] " ls -t /path/to/logs | head -6 " | rsync .... 
Source Link
Putnik
  • 906
  • 2
  • 10
  • 20

did you try ssh -qx [email protected] " ls -t /path/to/logs | head -6 " | rsync.... ?