using bash commands and ftp connection i have to perform two tasks:
- delete oldest file in some directory on ftp server. name of file that have to be deleted starts with backup_
- delete oldest subdirectory (on ftp server) in some directory
can you help me how to achieve?
i have to integrate those functions in existing file, so i will have no problems how to create ftp connection etc.