Admin backups failing - Writing/Reading/Unable to move errors

Copra

Verified User
Joined
Apr 29, 2020
Messages
36
Hello,

There is suddenly a problem with making backups on one of our servers. The backups is made with Admin Backup/Transfer in DirectAdmin and it is stored in /home/admin/admin_backups on the same server. Since about a month we have this errors with all users:

Error copying ./data/users/[username]/history to /home/admin/admin_backups/[username]/backup/history : mkdir(/home/admin/admin_backups/[username]/backup/history) error: Permission denied
Unable to create the directory /home/admin/admin_backups/[username]/backup/history

Error reading /home/admin/admin_backups/[username]/backup/aahaa.nl/domain.conf to insert local_domain & private_html_is_link: Unable to open /home/admin/admin_backups/[username]/backup/[domainname.xx]/domain.conf for reading.
Permission denied

Error renaming /home/admin/admin_backups/[username]/user.admin.[username].tar.zst to /home/admin/admin_backups/user.admin.[username].tar.zst : Unable to move /home/admin/admin_backups/[username]/user.admin.[username].tar.zst to /home/admin/admin_backups/user.admin.[username].tar.zst:
A directory component in oldpath or newpath does not exist or is a dangling symbolic link.

I tried
Code:
ls -al /home/admin/admin_backups
to see if the directory is owned by admin and it is.

I checked the disk space and there was enough:

Filesystem Size Used Avail Use% Mounted on
devtmpfs 16G 0 16G 0% /dev
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 16G 1.6G 14G 10% /run
/dev/sda1 338G 254G 71G 79% /
/dev/sda14 64M 5.8M 59M 9% /boot/efi
tmpfs 3.1G 0 3.1G 0% /run/user/0
tmpfs 3.1G 0 3.1G 0% /run/user/1000

Do you have any idea what I can do to make it work again?
 
Thank you very much @Active8 !
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh all

did the trick.
 
Back
Top