0

Is there any way for me to delete all folders in a given ftp folder using a cronjob, and the deleted files are folders older than x hours, with a few specific folders that are not deleted that I specify before hand? I've tried/spent a few hours looking around and I can't find anything that matches what I need and i'm pretty green to all of this.

I was previously doing it using a bash script and a find function on my server, but now that I want to do it via ftp nothing is working. I don't have admin/root rights on the server im trying to connect to.

3
  • 1
    Yes it's probably possible. What have you tried? What research have you done? Mar 25, 2022 at 3:42
  • I think one possible approach starts with curlftpfs, uses find and ends with fusermount -u. Mar 25, 2022 at 19:26
  • awesome thank you! I will try to look into curlftpfs more
    – Supmiller
    Mar 26, 2022 at 2:21

0

You must log in to answer this question.

Browse other questions tagged .