Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20813

eZDFS cleanup: Allow detection of NFS and DB availability to prevent accidental removal of files.

    XMLWordPrintable

    Details

      Description

      The DFS cleanup script dfscleanup.php has options to check both the database and NFS share for existing files, and remove "stale" data in its counterpart.

      However, in case of failure of either, files/records will be (incorrectly) removed as they are not found.

      Steps to reproduce:
      • Run dfscleanup.php script
      • Disconnect the NFS mount point

      Files will be removed from the database.

      Suggested enhancement:
      • Either by default, or using a parameter/flag, check for general availability of the mount point (as well as database) if a file is not found.
      • On the NFS share, this could be done, for example, by checking for the existence of an existing file or directory (var dir?) when a file is not found.
      • If the NFS or DB are not available, the script could then terminate without further processing.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 3 days, 4 hours, 15 minutes
                  1w 3d 4h 15m