Restoration of cpanel accounts via command line

kebirhost

Verified User
Joined
Jul 8, 2019
Messages
91
Hello,

Yes there is but it is too long and not easy.

echo "action=restore&ip%5Fchoice=file&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=admin&select%30=user%2Eadmin%2Etestuser%2Etar%2Egz&type=admin&value=multiple&when=now&where=local" >> /usr/local/directadmin/data/task.queue


Could you prepare a acript for this?

For example:
/usr/local/directadmin/scripts/restore $username


Thanks,
Melih
 

raghav

Verified User
Joined
Sep 8, 2011
Messages
27
Is it possible to bypass da task que for backup creation or restoration?

When we add a task to task que, is it possible to specify the task should be run without any delay?
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,483
Location
LT, EU
Is it possible to bypass da task que for backup creation or restoration?

When we add a task to task que, is it possible to specify the task should be run without any delay?
Just run:
Code:
/usr/local/directadmin/dataskq d
And you get it executed immediately :)
 
Top