Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Errors while backup

Discussion in 'Data Protection' started by jonathanlafleur, Jun 23, 2014.

  1. jonathanlafleur

    Joined:
    Oct 8, 2013
    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    New Richmond
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi,

    Last week I configured my cPanel to backup all user than export that backup to a NAS, when first backup occurs, it fill up all my root partition ( backup path was : /backup ), so I decided to move the backup process to /home/backup where I have a bigger HDD, but the problem is that I receive a lot of error while creating the backup

    * /home/backup/2014-06-21: Unable to open directory: Permission denied at /usr/local/cpanel/scripts/pkgacct line 1733.

    * /home/backup/2014-06-23: Unable to open directory: Permission denied at /usr/local/cpanel/scripts/pkgacct line 1733.

    * /home/backup/weekly: Unable to open directory: Permission denied at /usr/local/cpanel/scripts/pkgacct line 1733.

    * /home/expedi/public_html/commandes/267: Unable to open directory: Permission denied at /usr/local/cpanel/scripts/pkgacct line 1733.

    Someone have an idea how I could fix that ?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Check the permission/ownership values on the directory you referenced in the output:

    It's likely owned by the "root" user, and thus it's not backed up.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. jonathanlafleur

    Joined:
    Oct 8, 2013
    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    New Richmond
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thank you for your reply Michael,

    Theses folder have the right user permission, they are owned by user and group expedi, maybe it's the permission they have who is to strict d-wxr----t (340) What do you think could be better ?

    For the other part (permission in /home/backup) that look really strange, I have some folder owned by backup, and other by root ?


    [/home/backup]# ls -la
    total 76
    drwx--x--x 14 backup backup 4096 23 jun 04:15 ./
    drwx--x--x 116 root root 4096 21 jun 03:44 ../
    drwx--x--x 4 root root 4096 21 jun 02:00 2014-06-21/
    drwx--x--x 4 root root 4096 23 jun 02:00 2014-06-23/
    lrwxrwxrwx 1 backup backup 32 17 jun 16:33 access-logs -> /usr/local/apache/domlogs/backup/
    -rw-r--r-- 1 backup backup 18 21 fév 2013 .bash_logout
    -rw-r--r-- 1 backup backup 176 21 fév 2013 .bash_profile
    -rw-r--r-- 1 backup backup 124 21 fév 2013 .bashrc
    -rw------- 1 backup backup 17 17 jun 16:21 .contactemail
    drwxr-xr-x 2 backup backup 4096 17 jun 16:21 .cpanel/
    -rw-r----- 1 backup backup 1 18 jun 04:23 cpbackup-exclude.conf
    drwxr-x--- 2 backup mail 4096 17 jun 16:21 etc/
    drwxr-x--- 2 backup nobody 4096 17 jun 16:21 .htpasswds/
    drwx------ 2 backup backup 4096 17 jun 16:33 logs/
    drwxr-x--- 8 backup backup 4096 17 jun 16:21 mail/
    drwxr-x--- 3 backup backup 4096 17 jun 16:21 public_ftp/
    drwxr-x--- 3 backup nobody 4096 17 jun 16:21 public_html/
    drwxr-xr-x 5 backup backup 4096 18 jun 04:23 ssl/
    drwxr-xr-x 2 backup backup 4096 17 jun 16:21 tmp/
    drwx--x--x 3 root root 4096 19 jun 02:00 weekly/
    lrwxrwxrwx 1 backup backup 11 17 jun 16:21 www -> public_html/



    Thank you for your help again !
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    It looks like you created an actual account with the username "backup" instead of just creating the directory. I suggest using a different directory for backups if you plan to have an actual account with the "backup" username. As for the other issue you referenced, 0755 are the default directory permissions. Are you using 0340 permissions on that directory on purpose to limit access to it?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice