Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How to use FilesToLeave.txt in a DataMiner upgrade package?

Solved1.01K views19th October 2022application package upgrade package
1
Brecht Deconinck [SLC] [DevOps Member]1.20K 17th October 2022 0 Comments

How can we delete everything in the DataMiner/Protocols directory without deleting the Icons.xml file?
How can we also delete all files and subdirectories from the protocols directory without deleting the Icons.xml?

We have a DataMiner upgrade package (.dmapp) that has the following content:
FilesToDelete.txt:

c:\skyline dataminer\Views.xml
c:\skyline dataminer\Spectrum.xml
c:\skyline dataminer\SpectrumMonitors.xml
c:\skyline dataminer\AdminScripts
c:\Skyline dataminer\Aggregation
c:\Skyline dataminer\AssetManager
c:\skyline dataminer\Correlation
c:\skyline dataminer\Documents
c:\skyline dataminer\Elements
c:\skyline dataminer\Filters
c:\skyline dataminer\Mobile Gateway
c:\skyline dataminer\Protocols\*.*
c:\skyline dataminer\Recycle Bin
c:\skyline dataminer\Redundancy
c:\skyline dataminer\RemoteServices
c:\skyline dataminer\Scripts
c:\skyline dataminer\Services
c:\skyline dataminer\Simulations
c:\skyline dataminer\SLAlerter
c:\skyline dataminer\Spectrum Alarm Recordings
c:\skyline dataminer\System Cache

FilesToLeave.txt:

c:\skyline dataminer\protocols\icons.xml

UpdateContent.txt:

Lock
Disable
Kill
IIS Stop
Delete
Enable
Unlock
IIS Start
Start

Brecht Deconinck [SLC] [DevOps Member] Selected answer as best 19th October 2022

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Wouter Demuynck [SLC] [DevOps Advocate]5.93K Posted 19th October 2022 0 Comments

Hi Brecht,

Unfortunately, FilesToLeave only works in conjunction with the Update command, as a way to prevent files being overwritten when they already existed previously.

As far as I can see, FilesToLeave does not work as an exclusion list for the Delete command.

Some ideas for your scenario (deleting all protocol files except icons.xml):

  • Have multiple entries in FilesToDelete (Protocols\*\protocol.xml*, Protocols\*.txf, Protocols\*\trending*.xml, Protocols\*\template*.xml…
  • Use a batch file to temporary copy the icons.xml somewhere else and put it back after the delete. The batch file can be e.g. dropped using an “Update Tools” command
  • If icons.xml is a static file: delete all from protocols.xml and then use an “Update Protocols” command to write icons.xml
Brecht Deconinck [SLC] [DevOps Member] Selected answer as best 19th October 2022
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs