• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Resolved Backup skip files with "Argument list too long" error

Pascal_Netenvie

Regular Pleskian
Hi,
On a Plesk 12.0.18u96 on Debian 7.11 i have this message in backup log every night for one vhost :

Not all the data was backed up into /var/lib/psa/dumps/domains/mydomain.com successfully. sh: 1: /bin/tar: Argument list too long

How to debug and solve that please ?

Regards !
 
This is happening when you have too many files in a folder, like 100000 or more. This is a tar (and not just) issue, cannot read all files. Try to see in which folder you have that many files and if I presume well it is a cache folder. Try to see how you can write a script to delete older files.
 
Hi Pascal_Netenvie,

such issues appear, when you reach server configuration limits. Use for example the command
Code:
echo $(( $(getconf ARG_MAX) - $(env | wc -c) ))
... to display your current setting on your server.

You might as well consider to EXCLUDE folders/files in your backup - settings.
 
Thx Ivalics, it was this.
A cron task was generating a file every 3 min at vhost root so we had hunders thousands of useless files ... this is fixed and backup run ok.
 
Back
Top