• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question Change tmp backup directory

Erwan

Regular Pleskian
Server operating system version
AlmaLinux 9.4
Plesk version and microupdate number
18.0.60
Hi all,

We have just set up a new server with 2 disks: a basic 400G SSD, a classic 6T for a data site (/var/www/vhosts/mydomain.com/data.mydomain.com - currently with 1T of data).

We have scheduled a data backup to a remote S3.
Everything works well except the 1st backup once the data has been migrated which failed because there was not enough disk space. Which is understandable, a minimum of temporary disk space is required so that the backup can be created before being sent to S3.

Can you confirm that the variable to modify is "DUMP_TMP_D" in /etc/psa/psa.conf?
Nothing else?

...
# Backups directory
DUMP_D /var/lib/psa/dumps
# Backups temporary directory. DUMP_TMP_D should not be inside of (or equal to) DUMP_D.
DUMP_TMP_D /tmp
...

Wa have 6T on data domain, so:
DUMP_TMP_D /var/www/vhosts/mydomain.com/data.mydomain.com/backup_server_tmp

Thank you.

Erwan
 
Ok.
And using a symlink from /tmp to /var/www/vhosts/mydomain.com/data.mydomain.com/backup_server_tmp
and excluding /var/www/vhosts/mydomain.com/data.mydomain.com/backup_server_tmp from the backup ?

How do I know what minimum disk space is necessary for the backup process to be carried out (for example for 2T)?
On the system disk (400G), i've 200G available.
 
To answer both questions you'll have to test to find out what the result is. It's hard to predict.
 
So

Here is the error message from the saved state (S3 backup):

Error:
Unable to run the backup agent: PHP Warning: file_put_contents(/var/lib/psa/dumps/domains/mydomain.com/backup_info_2405310841_2406032111.xml): Failed to open stream: No space left on device; File: /usr/local/psa/admin/plib/backup/Agent/Dumper/DumpObject.php, Line: 75PHP Warning: file_put_contents(/var/lib/psa/dumps/domains/mydomain.com/backup_info_2405310841_2406032111.xml): Failed to open stream: No space left on device in /usr/local/psa/admin/plib/backup/Agent/Dumper/DumpObject.php on line 75PHP Warning: file_put_contents(/var/lib/psa/dumps/domains/mydomain.com/.discovered/backup_info_2405310841_2406032111/props): Failed to open stream: No space left on device; File: /usr/local/psa/admin/plib/backup/Agent/Dumper/DiscoveredInfo.php, Line: 45PHP Warning: file_put_contents(/var/lib/psa/dumps/domains/mydomain.com/.discovered/backup_info_2405310841_2406032111/props): Failed to open stream: No space left on device in /usr/local/psa/admin/plib/backup/Agent/Dumper/DiscoveredInfo.php on line 45PHP Warning: file_put_contents(/var/lib/psa/dumps/backup_info_2405310841_2406032111.xml): Failed to open stream: No space left on device; File: /usr/local/psa/admin/plib/backup/Agent/Dumper/DumpObject.php, Line: 75PHP Warning: file_put_contents(/var/lib/psa/dumps/backup_info_2405310841_2406032111.xml): Failed to open stream: No space left on device in /usr/local/psa/admin/plib/backup/Agent/Dumper/DumpObject.php on line 75PHP Warning: file_put_contents(/var/lib/psa/dumps/.discovered/backup_info_2405310841_2406032111/props): Failed to open stream: No space left on device; File: /usr/local/psa/admin/plib/backup/Agent/Dumper/DiscoveredInfo.php, Line: 45PHP Warning: file_put_contents(/var/lib/psa/dumps/.discovered/backup_info_2405310841_2406032111/props): Failed to open stream: No space left on device in /usr/local/psa/admin/plib/backup/Agent/Dumper/DiscoveredInfo.php on line 45PHP Warning: file_put_contents(/usr/local/psa/PMM/sessions/2024-06-03-211104.768/migration.result): Failed to open stream: No space left on device; File: /usr/local/psa/admin/plib/backup/Agent/LogWriter.php, Line: 72PHP Warning: file_put_contents(/usr/local/psa/PMM/sessions/2024-06-03-211104.768/migration.result): Failed to open stream: No space left on device in /usr/local/psa/admin/plib/backup/Agent/LogWriter.php on line 72PHP Warning: copy(/var/lib/psa/dumps/.discovered/backup_info_2405310841_2406032111/profile.log): Failed to open stream: No space left on device; File: /usr/local/psa/admin/plib/backup/Agent/Agent.php, Line: 503PHP Warning: copy(/var/lib/psa/dumps/.discovered/backup_info_2405310841_2406032111/profile.log): Failed to open stream: No space left on device in /usr/local/psa/admin/plib/backup/Agent/Agent.php on line 503

# df -lh
Filesystem Size Used Avail Use% Mounted on
devtmpfs 4.0M 0 4.0M 0% /dev
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 13G 286M 13G 3% /run
/dev/md3 474G 83G 391G 18% /
/dev/md2 1019M 154M 865M 16% /boot
/dev/nvme1n1p1 511M 2.5M 509M 1% /boot/efi
/dev/md127 5.5T 1.5T 3.8T 28% /var/www/vhosts/mydomain.com/data.mydomain.com
tmpfs 6.3G 0 6.3G 0% /run/user/992
tmpfs 6.3G 0 6.3G 0% /run/user/1000

However, there is disk space available. How to do??
 
Back
Top