directadmin_imap_backup without domains directory throws error

Version 1.51.0


Relating to this feature: If you use it, but do not select the "Domains Directory" option, the inclusion of the "imap" folder will be referencing a wrong path because "-C /home/user" wasn't added to the end of the tar string before "imap" was added. For the non-domains-directory option, when adding the "imap" folder, it will now add the full " -C /home/user imap" option. Before, it was using (for example): -C /home/admin/admin_backups/username backup imap which isn't where it lives, hence the error. The error generated is: Error Compressing the backup file user.admin.username.tar.gz : /bin/tar: imap: Cannot stat: No such file or directory /bin/tar: Error exit delayed from previous errors

Interested to try DirectAdmin? Get a 30-day Free Trial!