Any command to restore a backup

Given the changes with dataskq in 1.64.0 - I'm not sure how useful any of this information is,

But my notes for this include:

The backup file - i.e. user.admin.${USER}.tar - will need to be moved to /home/admin/admin_backups and then chown'd and chmod'd accordingly:

chown admin:admin /home/admin/admin_backups/user.admin.${USER}.tar
chmod 640 /home/admin/admin_backups/user.admin.${USER}.tar


Then add the relevant task to the task queue and run the queue:

echo "action=restore&ip_choice=select&ip=${IP}&local_path=/home/admin/admin_backups&owner=admin&select0=user.admin.${USER}.tar&type=admin&value=multiple&when=now&where=local" >/usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d200


Where ${IP} is the IP address to assign to the account when it's created through the restore.
And ${USER} is the user you want to restore.

If the account is owned by another reseller other than admin then these commands may need to be modified some what.

And again, since dataskq changes are being made in 1.64.0 I'm not sure if any of this is still relevant.
 
hi, thanks for your reply.
I tried your note, and most are ok, but it seems mysql is not restored successfully.
any parameters missing?
 
Back
Top