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 inmachineB
(viascp
) - 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!