• Resolved rateltech

    (@rateltech)


    hi,
    I’m using mainwp and i want to add mail folder to backup. However i cannot navigate the mail folder.
    For example, path is like that:
    /home/username/mail

    “username” is a variable and are there any shortcode like that %user%
    How can i add mail folders to backup for all websites.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @rateltech
    BackWPUp have a filter to help devs programmatically add extra folders to backup:
    backwpup_dir_include , so in your case, it would be something like this:

    add_filter('backwpup_dir_include', '/home/username/mail,/home/username/morefiles,/home/username/moredirs')

    I hope that it could help ^^

    Thread Starter rateltech

    (@rateltech)

    Hi, thanks for your reply but username is not constant, it is variable. So, in every single website it will change. I’m using mainwp and I need a generic solution for my all websites.

    @rateltech
    I mean, you can use the filter then programmatically Include files, folders as you like ^^

    • This reply was modified 5 years, 3 months ago by happyAnt.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding extra folder’ is closed to new replies.