How to change the location for Plesk backup files on a Linux server

Follow

Comments

13 comments

  • Avatar
    Michael M.

    Hello,

    1. could you please tell me where is located plesk backup script. I would like to change it a little.

    2. Will it be exchanged if plesk will be upgraded anytime?

    Thanks a lot.

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello @Starvos,

    This is unexpected behavior. A deeper investigation is required.

    Please, submit a support request to us or to our partner, in case, the license was purchased from them.

    0
    Comment actions Permalink
  • Avatar
    Kris Lowet

    Hello

    I think a permission of 755 is to much, regarding the 'plesk repair' utility:

    # plesk repair fs -n -v

    Checking Linux system files

    There are incorrect permissions on some items in directories used by
    Backup Manager .................................................... [ERROR]
    - Incorrect permissions on /mnt/new_backup_location. Expected: one of
    0750. Actual: 0755.

    0
    Comment actions Permalink
  • Avatar
    Lenusch

    Hi, i have changed that Backup Location and Backup works but Plesk Fails to Upgrade/ Update... 

    Some Errors: 

    "chown: changing ownership of '/mnt/dumps-box2/mysql.preupgrade.17.5.3-17.5.3.20180424-092657.dump.gz': Permission denied"

    "*** problem report ***
    ERROR while trying to backup MySQL database
    Check the error reason(see log file: /var/log/plesk/install/plesk_17.5.3_installation.log), fix and try again"

     

    I already chown psaadm and double checked that with new Location. 

    0
    Comment actions Permalink
  • Avatar
    Lev Iurev

    @Francisco Gochez it is quiet strange - it should not be reverted back by Plesk, please create ticket to our support.

    0
    Comment actions Permalink
  • Avatar
    Stanisław Daszkiewicz (Edited )

    Hello,

    I have set up DUMP_D and DUMP_TMP_D for not standard folder (mounted disk on cloud service), and the backup creation process works well. But when I download backup file from remote ftp storage, the file is downloaded to /opt/psa/tmp/ (instead of DUMP_TMP_D), and then, after it is downloaded, it is moved to DUMP_D.  When there is not enough free space on the base partition (where /opt/psa/tmp is) i can't download the backup or restore a backup from remote ftp storage. (My backup files are big proportionally to partition size).

    In my opinin the file should be downloaded to DUMP_TMP_D.

    Please tell me if there is an option to change location of temporary download file or, if there is any other workaround of this problem with small base partition.

    Plesk 17.8.11 Update #62, Debian 8.11.

    Best regards,

     

    0
    Comment actions Permalink
  • Avatar
    Francisco Gochez

    Hello, I have changed successfully two times the default backup location but it reverts back after a few days. When backups are stored on the boot disk it has 1-2% space left. I need it in another disk permanently. How do I prevent from rolling back this change?

    0
    Comment actions Permalink
  • Avatar
    Daria Gavrilova

    Hello @Stanisław Daszkiewicz,

    Thank you for your question.

    To change and configure the default location for temporary backup files, please check the following article: How to change default location for temporary backup files

    0
    Comment actions Permalink
  • Avatar
    Stavros Boat

    Hello,

    i have changed the backup location to a mounted cifs volume, the backup process completes with no errors but appears in the panel as several backups with the same datetime

    0
    Comment actions Permalink
  • Avatar
    Pavel Rozental

    @Lenor

    Hi, you can check workaround from https://support.plesk.com/hc/en-us/articles/213949225-Plesk-update-or-upgrade-failed-ERROR-while-trying-to-backup-MySQL-database article.

    0
    Comment actions Permalink
  • Avatar
    Kuzma Ivanov

    Hi there Kris Lowet

    Thanks for noticing this!

    We've updated the article.

    0
    Comment actions Permalink
  • Avatar
    Artyom Baranov

    @Michael M.,

    1) The script is located at /usr/local/psa/bin/pleskbackup

    However, I have to notice, that such customization will not be supported. I suggest keeping a backup of the script in case something goes wrong.

    2) A custom script will be replaced during Plesk update in case it was changed by Plesk developers. And it will be always replaced in case of Plesk upgrade.

    0
    Comment actions Permalink
  • Avatar
    Usta

    Hello,

    In "/etc/psa/psa.conf" file, there is no line about # Backups directory.

    There are only three lines in this file which are # Plesk tree, # Directory of SysV-like Plesk initscripts, # Directory for config files

    Is there any other locate the change DUMP_D?

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request