Submitted by xkeywee on Sun, 01/09/2011 - 04:21
Hi
I am wanting to restore via the command line just the "Server's home directory and web pages" and "Contents of server's MySQL databases"
Can you tell me what to use as the name value for these in the restore command as I cannot find the list anywhere.
Cheers Greg
Status:
Closed (fixed)
Comments
Submitted by andreychek on Sun, 01/09/2011 - 08:40 Comment #1
Howdy -- there's a short name assigned to each feature. If there isn't already, there should probably be a document describing these (I didn't find one after a quick glance). However, if you're HTML savvy, you can see the names of the features by looking in the HTML of the Backup and Restore -> Backup Virtual Servers, and looking at the Features and settings section. Each of the features is listed on that screen, and in the HTML the name of the field contains the feature's "short name".
In your case, the two that you're after are:
dir -- "Server's home directory and web pages"
mysql -- "Contents of server's MySQL databases"
When running the restore-domain command, you'd pass in the "--feature" twice, once for "dir", and the other for "mysql".
Submitted by JamieCameron on Sun, 01/09/2011 - 12:41 Comment #2
The command for this would be like :
virtualmin restore-domain --source /backup/domain.com.tar.gz --domain domain.com --feature dir --feature mysql
Submitted by xkeywee on Sun, 01/09/2011 - 20:00 Comment #3
That's great, thank you for the prompt support again.
Submitted by JamieCameron on Sun, 01/09/2011 - 20:13 Comment #4
Submitted by Issues on Mon, 01/24/2011 - 03:50 Comment #5
Automatically closed -- issue fixed for 2 weeks with no activity.