0

I have two Ubuntu machines, machineA and machineB. I would like to write a script that periodically (e.g., every 15 minutes):

  • copies ALL the files contained in a folder of machineA to a folder in machineB (via scp)
  • deletes ALL the original files in the folder of machineA

Could you help me in doing this and/or give me hints in writing it myself?

Thanks!

Eleanore
  • 1,750
  • 3
  • 16
  • 33

1 Answers1

0

You could create a cron job on one machine which does the scp to the other machine and deletes the corresponding files on itself.

Travis
  • 36
  • 3