Hi,
I run 4 instances parallel of the below command in custom scripts (otherwise backups take too long)
/scripts/pkgacct --skipacctdb --userbackup ${LIST_OF_ITEMS[$j]} $BACKUP_DIR
and experience that with random accounts that public_html/.htaccess file is missing.
With those accounts I see messages during backup
and there is no backup summary at the end but the next pkgacct session is starting.
Permission of file looks fine
-rw-r--r-- 1 cgdent cgdent 902 May 19 07:04 /home/cgdent/public_html/.htaccess
as well as the archive files.
I wonder why parallel running cause such problems and how it can be fixed?
Thanks
I run 4 instances parallel of the below command in custom scripts (otherwise backups take too long)
/scripts/pkgacct --skipacctdb --userbackup ${LIST_OF_ITEMS[$j]} $BACKUP_DIR
and experience that with random accounts that public_html/.htaccess file is missing.
With those accounts I see messages during backup
Code:
[2021-07-27 03:53:18 +0100] WARN: Warning(s) encountered in tar during archiving:
[2021-07-27 03:53:18 +0100] b_find(): /var/backups/accounts/backup-7.27.2021_03-45-20_cgdent/htaccess/_home_cgdent_public_html_.htaccess: No such file or directory
[2021-07-27 03:53:18 +0100] b_find(): /var/backups/accounts/backup-7.27.2021_03-45-20_cgdent/htaccess/_home_cgdent_public_html_.htaccess: No such file or directory[2021-07-27 03:53:18 +0100] ERROR: The subprocess “Archive::Tar::Builder” reported error number 2 when it ended.: b_find(): /var/backups/accounts/backup-7.27.2021_03-45-20_cgdent/htaccess/_home_cgdent_public_html_.htaccess: No such file or directory
[2021-07-27 03:53:18 +0100] b_find(): /var/backups/accounts/backup-7.27.2021_03-45-20_cgdent/htaccess/_home_cgdent_public_html_.htaccess: No such file or directory at /usr/local/cpanel/Cpanel/IO/Tarball.pm line 323.
[2021-07-27 03:55:20 +0100] pkgacct started.
Permission of file looks fine
-rw-r--r-- 1 cgdent cgdent 902 May 19 07:04 /home/cgdent/public_html/.htaccess
as well as the archive files.
I wonder why parallel running cause such problems and how it can be fixed?
Thanks