Add warning for backup restore path not owned by admin

doumu

Verified User
Joined
Aug 13, 2019
Messages
5
Changing the backup directory path in "Admin Backups >> Restore Backup" changes the local_path in backup.conf
Code:
[root@host ~]# cat /usr/local/directadmin/data/admin/backup.conf
append_to_path=nothing
ftp_ip=
ftp_password=
ftp_path=/
ftp_port=21
ftp_secure=no
ftp_username=
local_path=/root/backup
If you attempt to restore from this directory (not owned by admin) no error message is generated; it simply fails to load the files.

If you go to schedule a backup in Admin Backups >> Scheule Backups the backup path has changed to match backup.conf.


If you try to run a backup, you will get this error:
Backup path /root/backup has been created.
Path /root/backup does not exist or is not accessible by the admin user.
Permission denied.

Can an error message be added to the restore page if directory not owned by admin is chosen?
 
Top