Synchronize then delete remote directory using SSH-SFTP program or Linux (Centos) command lines
Posted on 2013-01-10
I have a PBX system which has very limited capacity for call recording that will not last for more than a week probably.
I'm using WinSCP through SFTP (SSH Based on port 22) at the moment to sync remote folder to my PC, but I have to do this manually each week to sync the recording folder, then delete its remote contents so the PBX can start recording again.
I would like to know if there's any other application that would schedule Synchronization through SSH - SFTP and then delete the remote directory contents. and incase there's not. is there anyway to do this through Centos command lines? as The PBX has also support to USB external storage and I would also be glad if I could schedule moving the recording folder contents from a directory path into another.
Thanks a lot