How to transfer from dead system

sday

Verified User
Joined
Feb 23, 2008
Messages
6
Location
Auckland, New Zealand
Merry Xmas everyone

I'm having server trouble and may end up getting only ssh access if getting the server back up is too much trouble, since I have a replacement machine 95% ready in another datacenter. If the machine is toast then I have the same problem but the source will just be the most recent system backup.

So, can I produce an admin_backup for each user from only a rescue system with the original disk mounted and no running DA?

Alternatively, is there a recipe for moving users without using the DA backup facility.

Cheers
Shane
 
If there are any databases you have to make sure mysql is running.

Then:
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 &

This will put the backups in /home/admin/admin_backups
 
Doesn't that require DA to be running to process the task.queue? If dataskq is what does this, is mysql the only thing it depends on?
 
Last edited:
Doesn't that require DA to be running to process the task.queue?

No. dataskq never depends on DA running. Usually it is run from cron so cron would have to be running normally but not in this case since you are manually running dataskq.

If dataskq is what does this, is mysql the only thing it depends on?

dataskq does not depend on mysql. Mysql has to be running if you want the databases to be backed up by dataskq. Otherwise you have to manually save the files since a mysqldump cannot be performed if mysql is not running.

I think it would be good to have the answer/recipe here

Reading the instructions can do wonders for our understanding of things. http://help.directadmin.com/item.php?id=198
 
Thanks floyd. That all makes sense. I presume that dataskq depends of finding DA files at the expected absolute paths. So that excludes writing a 'quick' swapper scripts capable of running from an NFS mount of a backup or similar. Perhaps I'll through together a script that chroots, runs mysql, and runs the backup <contemplation>.

I normally just google for "whatever site:directadmin.com", but that didn't point me at that help page. I'll try to remember to search there specifically next time. Cheers.
 
Thanks floyd. That all makes sense. I presume that dataskq depends of finding DA files at the expected absolute paths. So that excludes writing a 'quick' swapper scripts capable of running from an NFS mount of a backup or similar. Perhaps I'll through together a script that chroots, runs mysql, and runs the backup <contemplation>.

Do you need to do this on a regular basis? If not then there is no need to write a script to do it. Just chroot to the file system you need to backup and start mysql and then run the backup commands.
 
Back
Top