in reply to Need Net::FTP delete help

Hi Todd Chester,

a lot of stuff in Net::FTP does not work correctly

As soonix told you here last week, a lot depends on the FTP server, and sometimes they simply don't support certain things. One way to approach the problem might be to compare a different FTP client to Net::FTP. If the operation does work from a different client, you could use Wireshark to trace the connection and compare what the two clients are doing differently (unless you're using encrypted connections?).

AAAAAAHHHHHHH!!!!!!!!!!!

Considering that you've apparently been doing battle with FTP for at least a week now, two thoughts: First, I know the following suggestion may be frustrating, but sometimes it's necessary to consider. Second: Perhaps you might want to take a step back. In this post, you seem to indicate that you have shell access to the server machine. Why are you using FTP? Have you considered using SSH and SFTP instead? Also, taking a step back can mean to take a couple of hours to just read all the available documentation: the server*, the protocol (perhaps even including the RFCs), and the client.

* I saw which server you're using in one of your other posts from last week. It would be best to mention this in each of your posts, since it took me a while to find this information.

Regards,
-- Hauke D

Replies are listed 'Best First'.
Re^2: Need Net::FTP delete help
by Todd Chester (Scribe) on Feb 08, 2017 at 10:10 UTC
    Hi Hauke,

    The ftp server is vsftpd-3.0.3-3.fc25.x86_64 running on Fedora Core 25.

    The Client is Windows 7 Professional, x64 full updated. And Cobian Backup 11

    Everything is running on a local network. No Internet involved.

    One of the backup sets on Cobian is writing to the FTP server. This is one of my methods of messing with the minds of Ransomware. (It is not my only one)

    Even on it's better days, Cobian has a hassle and a half pruning old backup sets, be they to local drive or an FTP server. So, I write my own rotator wrappers to prune things. This program I am working on now, is to rotate the FTP backup sets from Cobian.

    Cobian does not support those other fancy formats you mentioned.

    As the "administrator". I have remote access to both machines. I set up the ftp server, rules and all. Makes it nice to see what is actually going on after a backup set goes off from Cobian

    And, as I mentioned previously, I am able to use a Linux ftp client to delete file and directories starting with a dot.

    -T

      Hi Todd Chester,

      Everything is running on a local network. ... As the "administrator". I have remote access to both machines. ... One of the backup sets on Cobian is writing to the FTP server. ... This program I am working on now, is to rotate the FTP backup sets from Cobian.

      So, do I understand correctly that you are connecting from the Windows machine to the Linux machine via Net::FTP to accomplish this? Why not simply run a script on the Linux machine directly and have it do its work locally?

      Regards,
      -- Hauke D

      haukex wrote:
      Why not simply run a script on the Linux machine directly and have it do its work locally?
      I second that. Especially if you do this as protection from ransomware, you would not want to allow the (possibly infected) client to delete important backup data.

      Plus, if it runs on the server, you could add staging at a later stage (that pun came by itself).

        Because I will not always have full control over ftp servers, such as weird NAS boxes
      "Everything is running on a local network."

      Are you trolling us or WHAT?!?!? :D :D :D

        > Are you trolling us or WHAT?!?!?

        :'P