Forum Stats

  • 3,876,263 Users
  • 2,267,083 Discussions
  • 7,912,486 Comments

Discussions

rsync to transfer files sysdate-1

Robeen
Robeen Member Posts: 2,250 Silver Badge

Dear Team,

we are currently pulling files from a remote server using rsync.

rsync -chavzP --rsync-path="sudo rsync" --stats [email protected]<remoteIP>:/data/CDR/inocs/voice /cdr/VOICE/VOICE


Initially it may pull around 500,000 files. If everyday 20 files are being generated, how can I pull the files incrementally?


1 way is if we modify the script to pull files sysdate-1?


Thanks,


Roshan