Admin Backup/Transfer not restoring reseller information

Swift-AU

Verified User
Joined
Dec 31, 2003
Messages
69
I'm attempting to migrate a server from FreeBSD 4 to FreeBSD 7 using Admin Backup/Transfer.

I've selected to backup all users, and this process completes successfully. Upon restoring all users on the new server, it appears the reseller information has not been restored correctly -- most noticeably the resellers no longer have any package information. A check of /usr/local/directadmin/data/users/x/packages confirms that the data has not been restored. A check of the relevant backup tarball confirms that the package data was correctly backed up in the first place.

Simply restoring the packages directory and packages.list from the tarball doesn't completely fix the problem, so I suspect other files in the users/x directory are also not correctly restored. Regular users appear to be restored correctly.

Has anyone else come across a similar situation?

Thanks.
 
Hello,

Simply restoring the packages directory and packages.list from the tarball doesn't completely fix the problem,
for a Reseller, that's basically all that's needed for the packages to show up. If they're not, then the only thing would be possibly incorrect permissions on said files.
Make sure they're all chowned to diradmin:diradmin and the files are chmod 600 (directory 700)

Failing that, try:
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh da_files
./fix_da_user.sh [B]resellername[/B] reseller
and see what that does.

Failing that, please specify what exactly isn't working.. if the list isn't not showing up, or if you're getting any errors, etc..

I tested a backup, deletion, then and restore of a test reseller on one of our build systems which seemed to work ok.

John
 
What I am seeing is that the Admin/Backup Transfer will back up all the data in /usr/local/directadmin/data/users/admin, but not that in /usr/local/directadmin/data/admin. If that's the way it is designed to work, then perhaps it is basically working ok. If I firstly restore "admin", then re-create the reseller packages, and then restore the resellers, the resellers packages seem to work ok. Restoring users works fine.

Also, and perhaps unrelated, I have done some restores of individual resellers (i.e. restored just the one reseller.admin.etc.tar.gz file), and have never received the "restore complete" ticket in DA. Manually doing a untar of the file works perfectly. I'm then left wondering did the restore complete successfully or not. Most times it seems like it has, but I'm not yet 100% convinced. This only seems to happen a small percentage of the time, and always with larger archives (say around 1GB).

-Swift
 
Ok.

The backups do no include "Admin" level data.
It only does Reseller and lower.
This means "Reseller" packages are not backed up.. only "User" packages created by a Reseller are backed up.

As for not getting a ticket, there is an option not to return any message unless there is an error. This setting is at the bottom of the backup/restore pages.. double check it's set to what you want.

Also check the /var/log/directadmin/errortaskq.log
Look for any errors with the next_ticket.number file.
Check:
/usr/local/directadmin/data/admin/next_ticket.number
and make sure that you see a number in that file.. if it's empty, it needs a number, set to a value higher than the last highest used ticket number. If in doubt, set it to something like 5000.

John
 
Back
Top