Giter Club home page Giter Club logo

Comments (2)

bwmarkle avatar bwmarkle commented on July 17, 2024

When testing, I was able to replicate. When FTP is setup, logins are made on the following dashboard pages:

  • BoldGrid Backup > Backup Archives
  • BoldGrid Backup > Settings > Backup Storage
  • BoldGrid Backup > Backup Archive Details

I was unable to replicate ftp logins always happening on the following pages:

  • BoldGrid Backup > Preflight Check
  • BoldGrid Backup > Tools

On the Settings page, BoldGrid Backup lists "FTP / SFTP" as a backup storage option. it needs to know if:

  1. The checkbox for "FTP / SFTP" should be checked, and
  2. If it should say "Configured", or provide a link for the user to configure.

If the remote storage provider "is setup", then it shows the user that it is "Configured". To determine if ftp is setup, we attempt to connect and login to the ftp server: https://github.com/BoldGrid/boldgrid-backup/blob/master/admin/remote/class-boldgrid-backup-admin-ftp.php#L689-L705

To prevent the "connect and login" test on each page load, we can cache the info. If the user logged in within the last x hours, no need to check.

from boldgrid-backup.

bwmarkle avatar bwmarkle commented on July 17, 2024

Testing instructions:

  1. Setup ftp within the backup plugin
  2. Access the settings pages of the boldgrid backup plugin 3 or 4 times. The first time, it may login to your ftp server, but subsequent visits to the settings page should not log in to your ftp server.

How do you know if your ftp server is being logged into? Either review the logs from the command line or do something like this: https://gist.github.com/bwmarkle/adf029731c176e10f01627b73d43d736

from boldgrid-backup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.