directadmin dead after change server ip

seachen

Verified User
Joined
Feb 3, 2007
Messages
491
my server get attack and change ip

after that found out that directadmin unable to work

can somebody give me some suggestion

by the way, is it possible to backup user data from SSH?

regards
Seachen
 
Did you notify DirectAdmin Sales and have they changed the IP# on your account?

Yes, you can call the backup from the API; search these forums.

Jeff
 
You don't even have to use the API.

Code:
echo "action=backup&local_path=/home/admin/admin_backups&owner=admin&type=admin&value=multiple&when=now&where=local&who=all" >> /usr/local/directadmin/data/task.queue

/usr/local/directadmin/dataskq &
 
Thanks, Floyd.

Does this backup all resellers and their users?

Do you know the options for the various options available through the control panel web interface?

Jeff
 
What I do when I want to know the various options is look at the task.queue file after clicking submit but before the queue is run.

The above is what gets written to the task.queue file when you want to back up all, now, and in /home/admin/admin_backups

The only difference is that what DA writes is url encoded. Why I don't know. Taking out the encoding seems to work also and its easier to read. What DA writes looks like this:

Code:
action%3Dbackup%26local_path%3D%2Fhome%2Fadmin%2Fadmin_backups%26owner%3Dadmin%26type%3Dadmin%26value%3Dmultiple%26when%3Dnow%26where%3Dlocal%26who%3Dall

You can use a url encoder/decoder here http://www.albionresearch.com/misc/urlencode.php
 
url encoded:
Code:
action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=admin&select%30=<username>&type=admin&value=multiple&when=now&where=local

unencoded:
Code:
action=backup&local_path=/home/admin/admin_backups&owner=admin&select0=<username>&type=admin&value=multiple&when=now&where=local

Both work. But one is much easier to read.
 
if my username is babefish

full cmd is as below ?

action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=admin&select%30=babefish&type=admin&value=multiple&when=now&where=local

or

echo "action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=admin&select%30=babefish&type=admin&value=multiple&when=now&where=local

or

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

/usr/local/directadmin/dataskq &
 
Back
Top