Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Some DirectAdmin command line tasks  (Read 5452 times)

0 Members and 1 Guest are viewing this topic.

mohitht

  • Guest
Some DirectAdmin command line tasks
« on: January 06, 2014, 07:11:03 pm »
Hi All,

The few tasks can be handled using the Command line by storing a particular task  to “/usr/local/directadmin/data/task.queue“.

The saved  tasks can be  executed by dataskq, which is invoked by cron every minute.
 
You can invoke the cron job manually by typing:

# /usr/local/directadmin/dataskq


In order to update Directmin

# echo "action=update&value=program" >> /usr/local/directadmin/data/task.queue


To reset bandwith :

# echo "action=reset&value=all" >> /usr/local/directadmin/data/task.queue

Httpd configuration file rewiritng

# echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue



To view all users Cache file

# /usr/local/directadmin/data/admin/show_all_users.cache

To create a backup for all users

# echo action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=admin&type=admin&value=multiple&when=now&where=local&who=all" >> /usr/local/directadmin/data/task.queue



To create a backup for one user

# echo "action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=admin&select%30=username&type=admin&value=multiple&when=now&where=local" >> /usr/local/directadmin/data/task.queue

Thanks  :)

Regards,
Mohith