Skip to main content

Exclude LiteSpeed /lscache direcory from backup

Comments

6 comments

  • cPRex Jurassic Moderator
    Hey there! Is your LScache being stored in /home/lscache? If so, I wouldn't expect that directory to be backed up by default as it would not be owned or handled by any individual cPanel user. If you're seeing a cache directory in another location could you let me know where that is?
    0
  • serpent_driver
    Is your LScache being stored in /home/lscache?

    Yes, for Server level, but it is unused. On VHost Level every account has its own /lscache dir in /home/account/lscache and this location is affected from backup. In my case I have additional /lscache dir for each subdomain. /home/account/subdomain.lscache
    0
  • cPRex Jurassic Moderator
    Thanks for the additional details. Would you happen to be using the WordPress plugin as well to generate that cache? I would still recommend using the exclude file at /etc/cpbackup-exclude.conf, but you mentioned you didn't like this idea - is there a reason for that?
    0
  • serpent_driver
    Would you happen to be using the WordPress plugin as well to generate that cache?

    No, I developed a couple of new plugins for applications where is no plugin available, but they follow cache behaviour like all plugins do. Location where cache is stored is based on server configuration and can't be modifed by a plugin.
    is there a reason for that?

    Yes, there is a good reason. WHM is a mighty control panel where in (almost) everything can be configured, so why to edit a configuration file? Making a backup isn't a rare job, so why don't you extend this important function to get a little bit more comfort? :) Sorry, I am spoiled..... from WHM!
    0
  • cPRex Jurassic Moderator
    Ah, I see what you mean :D It would be a nice feature request to submit to allow the backup exclude file to be edited directly through the WHM interface, so you can do that through the link in my signature.
    0
  • serpent_driver
    Thank you, will do!
    0

Please sign in to leave a comment.