script restore virtualmin domain

8 posts / 0 new
Last post
#1 Mon, 11/29/2010 - 14:07
pinguinolinux

script restore virtualmin domain

I would like to create a script that allows me to access the server 2 to server 1 take the backup made with virtualmin and restore the backup of a server on server 2 but I did not know if I can indicate the source via ssh I guess someone help?

virtualmin restore-domain --source ssh://root:password@192.168.1.1/HD_Ext/pippo.it.tar.gz --all-domains --all-features

In your opinion is right? The server has an ip 192.168.1.1 the server has 2 ip 192.168.1.2

Mon, 11/29/2010 - 14:14
Locutus

Syntax looks okay, except for the fact that the keywords are denoted by two hyphens, like "--source", "--all-domains" and "--all-features".

Mon, 11/29/2010 - 14:51 (Reply to #2)
pinguinolinux

sorry, had to copy and paste error. The problem seems to connect the source ssh

Mon, 11/29/2010 - 15:22
Locutus

Well, the syntax for the SSH looks okay. Can you elaborate? What exactly is the problem?

Mon, 11/29/2010 - 15:47
pinguinolinux

Missing or invalid restore file

Restores a Virtualmin backup, for the domains and features specified on the command line.

virtualmin restore-domain --source file [--test] [--domain name] | [--all-domains] [--feature name] | [--all-features] [--except-feature name] [--reuid | --no-reuid] [--fix] [--option feature name value] [--all-virtualmin] | [--virtualmin config] [--only-features] [--shared-ip address | --ip address | --allocate-ip] [--only-missing | --only-existing]

Multiple domains may be specified with multiple --domain parameters. Features must be specified using their short names, like web and dns.

The source can be one of : - A local file, like /backup/yourdomain.com.tgz - An FTP destination, like ftp://login:pass@server/backup/yourdomain.com.tgz - An SSH destination, like ssh://login:pass@server/backup/yourdomain.com.tgz

Mon, 11/29/2010 - 16:09
Locutus

Okay, I suppose then the SSH connection/retrieval does not work... Wrong username, password, IP, path or filename maybe? Connection problem?

Mon, 11/29/2010 - 16:13
pinguinolinux

everything is correct

Mon, 11/29/2010 - 17:51
Locutus

Okay, sorry, no idea here then. Good luck anyway! :)

Topic locked