if any plug in i can use to compress and the ftps the file
You can use MBS Plugins.
The archive classes can do zip or tar files:
and CURL Plugin does SFTP, FTP and FTPS:
this class compress folder with all data in the folder and sub folder
Please check examples. I think it can do folder, too.