• 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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