1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Exclude folder from backup

Discussion in 'Plesk 11.x for Linux' started by RafaelH, Nov 21, 2012.

  1. RafaelH

    RafaelH New Pleskian

    10
     
    Joined:
    Nov 21, 2012
    Messages:
    3
    Likes Received:
    0
    Hi,

    I'm new to Plesk and already have a little problem I can't solve by searching the web. My Plesk Panel 11.0.9 Update #26 is running on a dedicated Debian 6.0.6 server and works all fine, but I'm having some issues with the backups.
    I'm doing backups using the standard build in GUI backup manager. Everything works fine, even the cron job which copies the backup files every night to a second location. The problem I'm having is, that I can't specify folders to exclude from the backup. The reason why I need this is, that I have a 24TB RAID mounted in the /var/www/vhosts/mydomain.com folder and this will be a problem once the RAID is filling up.
    Is there any way to solve my issue? I took a look on the commandline utility pleskbackup, but couldn't find a solution there as well.

    Thanks very much!

    Rafael
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,556
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
    There is no possibility to exclude files/directories from backup not with GUI and not with CLI backup utility. You can exclude only whole domains/clients.
     
  3. RafaelH

    RafaelH New Pleskian

    10
     
    Joined:
    Nov 21, 2012
    Messages:
    3
    Likes Received:
    0
    Thanks for your answer! In this case I'll write a script combining rsync and mysqldump.
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,556
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
    It would be very useful if you share it here for community. Thanks.
     
  5. RafaelH

    RafaelH New Pleskian

    10
     
    Joined:
    Nov 21, 2012
    Messages:
    3
    Likes Received:
    0
    I will post my script once it's done. Right now I'm still doing my backups using the GUI without excluding anything.
     
  6. danboarder

    danboarder New Pleskian

    22
     
    Joined:
    Jun 16, 2006
    Messages:
    3
    Likes Received:
    0
    How to exclude whole domains/clients?

    On that last bit "... You can exclude only whole domains/clients", how exactly can I do this? Thank you!
     
  7. Dmitriy S

    Dmitriy S Basic Pleskian

    11
    55%
    Joined:
    Mar 2, 2013
    Messages:
    37
    Likes Received:
    0
    # /usr/local/psa/bin/pleskbackup --help
    # /usr/local/psa/bin/pleskrestore --help

     
  8. DanijelD

    DanijelD Basic Pleskian

    19
    35%
    Joined:
    May 13, 2010
    Messages:
    68
    Likes Received:
    0
    Btw, what folders are included in the Plesk backup? I have a 10 GB backup tar file, and can't easily download it and extract to find out myself.

    I was wandering if /var/www/vhosts/something_important would be backed-up? In that case I would place some important files into this folder.

    Thanks for help.
     
  9. UFHH01

    UFHH01 Plesk addicted!

    44
    64%
    Joined:
    Jun 11, 2013
    Messages:
    6,762
    Likes Received:
    1,712
    Location:
    Hamburg / Germany
    I would suggest to backup only the configuration and not the content, if you have domains with large contents. The string "-c" defines such an option and you can as well exclude domains with a string ( --exclude-domain=EXAMPLE_DOMAIN_1,EXAMPLE_DOMAIN_2, ... ) and make a separat backup for these domains with the global string "domains-name EXAMPLE_DOMAIN_1"

    Please use the command "/usr/local/psa/bin/pleskbackup --help" for all possible options with pleskbackup.
     
  10. DanijelD

    DanijelD Basic Pleskian

    19
    35%
    Joined:
    May 13, 2010
    Messages:
    68
    Likes Received:
    0
    Thanks, but that doesn't answer my question.
    I was wandering if /var/www/vhosts/something_important would be backed-up?
    If yes, then I would copy some important files to this folder, and I would be sure it's backed up.

    I would appreciate very much if someone could answer if the complete vhosts folder ends up inside the backup?
     
  11. UFHH01

    UFHH01 Plesk addicted!

    44
    64%
    Joined:
    Jun 11, 2013
    Messages:
    6,762
    Likes Received:
    1,712
    Location:
    Hamburg / Germany
Loading...