Backup with command line in rescue mode

ericovk

Verified User
Joined
Apr 17, 2012
Messages
228
Location
Rotterdam, Netherlands
I am having trouble with my dedicated server. The server crashed on a bad disk and bad memory. The hosting company wants to reinstall the entire system. Because I need to make backup of the entire system, the server is now in rescue mode.

The problem is that I can't create any backups via command line (http://help.directadmin.com/item.php?id=198). No complete backups, but also no user backups.

When I execute one of the echo lines, nothing happens in the /home/admin/admin_backups/ folder
When I execute
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
$ /usr/local/directadmin/dataskq d200
I get:
Code:
pidfile written
staring queue
dataskq: command: action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups%32&owner=admin&type=admin&value=multiple&when=now&where=local&who=all
User::setQuota(0) user=admin
quota command: /usr/sbin/setquota admin 0 0 0 0 /
Error with quotas: setquota: Cannot stat() mounted device /dev/md3: No such file or directory
setquota: Mountpoint (or device) / not found or has no quota enabled.
setquota: Not all specified mountpoints are using quota.

Don't know what to do next...
 
Last edited:
Rescue mode is single user mode only, so the cronjobs necessary to run the backups won't run. I don't know any way to get around this except to manually backup everything. Perhaps others can explain how they did it.

Jeff
 
We had a disk go bad after 5 years!. We were lucky, we backup everything daily (clients) and the system every 2 days. What we didn't have backed up we had to tar the stuff up and ftp to one of our backup servers.

It was a pain but live by the rule, keep backing up regularly.
 
Hello,

1) Crank up the debug level to 2000, instead of 200 (or 3000 if 2000 doesn't give useful info).

2) I'm not sure the setQuotas should be hurting it, but we don't need to worry about quotas here to turn setquota into a an empty wrapper:
Code:
cd /usr/sbin
mv setquota setquota.orig
nano setquota
add the code:
Code:
#!/bin/sh
exit 0;
and then chmod:
Code:
chmod 755 setquota
John
 
Back
Top