教程资源
Search:     Advanced search

DirectAdmin无法启动后的Shell备份方式 How to create a full backup of all accounts via the command line.

Article ID: 138
Last updated: 14 Jun, 2014
Revision: 1
Add comment
Views: 0
Comments: 0
Posted: 14 Jun, 2014
by Tom M.
Updated: 14 Jun, 2014
by Tom M.

这个问题出在以下一些情况下
比如 月付的DA授权过期了 DA配置文件误操作导致的无法启动

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

在查看cron的日志 完成后就可以了

备份的目录在 /home/admin/admin_backups 下面

在SHELL下的恢复

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

如果需要单个账户恢复

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

This article was:  
Prev   Next
更改IP后...     Plesk教程