We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38878
    • 255 Posts
    Has anyone been successful in following the instructions on how to exclude file and/or directories from a vapor transport package? I have followed the instructions but vapor fails silently with the following config.php file in the vapor directory:

    ```php
    <?php
    return array(
        'excludeFiles' => array(awstats,log,stats,templates,assets/videos),
        'excludeExtraTables' => array(),
        'excludeExtraTablePrefix' => array(),
    );
    ```


    This is exactly as the readme.md file describes but it fails. Without the config php it runs but includes a whole buch of stuff from my webroot I dont need or want in my export. I tired noth with and w/o the ```php tagging with the same result.

    TIA

    This question has been answered by sottwell. See the first response.

    • discuss.answer
      I would presume that those array values would need to be surrounded with quote marks, as they are strings.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 38878
        • 255 Posts
        Wow. What a numb nut! laugh thx. Crawls in a nearby hole...
          • 34120
          • 236 Posts
          I can't get this to work for some reason. I've tried a number of variations for the config.php file but it seems to be ignored. I've checked the vapor logs and vapor is still trying to pack the excluded files.
          <?php
          return array(
              'excludeFiles' => array('log','stats','lightroom'),
              'excludeExtraTables' => array(),
              'excludeExtraTablePrefix' => array(),
          );

          I'm stumped now, any ideas?
            • 34120
            • 236 Posts
            Strange, I added the excluded files to vapor.php instead and it seems to be working now.
              • 24374
              • 322 Posts
              Same thing here. I can't get this to work, even if I put it in vapor.php instead. The code all looks like it should work, but it isn't.

              Where exactly did you put it in vapor.php? I tried putting it at the top in the $vaporOptions definitions, and also tried adding the files down below into the $excludes array.