Results 1 to 2 of 2
-
02-16-2011, 09:24 AM #1Disabled
- Join Date
- May 2010
- Location
- iran-zanjan
- Posts
- 164
How to create a full backup of all accounts in directadmin via the command line
If your server is on it's way to being fully dead, or your license has expired, you can still create backups via the command line. To do so, run the following command:
Code:echo "action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups%32&owner=admin&type=admin&value=multiple&when=now&where=local&who=all" >> /usr/local/directadmin/data/task.queue
Code:/usr/local/directadmin/dataskq d200
The command to create a backup for just a single User is:
Code:echo "action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=admin&select%30=testuser&type=admin&value=multiple&when=now&where=local" >> /usr/local/directadmin/data/task.queue
Along the same lines, to restore a single User, the command is:
Code: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
-
03-14-2011, 08:56 AM #2New Member
- Join Date
- Jan 2010
- Location
- EGYPT
- Posts
- 2
Thank you man
Similar Threads
-
How to create full backup?
By bigu_c in forum VPS HostingReplies: 12Last Post: 07-04-2008, 07:51 PM -
Trying to restore a RAQ backup from command line
By iisv in forum Dedicated ServerReplies: 1Last Post: 06-24-2005, 03:40 PM -
How to take full backup of server from command prompt!!
By atul in forum Hosting Security and TechnologyReplies: 5Last Post: 04-30-2004, 02:12 AM -
Add accounts through Command Line
By ClusterMania in forum Hosting Security and TechnologyReplies: 11Last Post: 06-19-2002, 06:32 PM -
How to create DNS zones in Win NT from command line
By mac in forum Hosting Security and TechnologyReplies: 8Last Post: 11-27-2000, 12:42 PM