These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for script restore virtualmin domain on the new forum.
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
Syntax looks okay, except for the fact that the keywords are denoted by two hyphens, like "
--source
", "--all-domains
" and "--all-features
".sorry, had to copy and paste error. The problem seems to connect the source ssh
Well, the syntax for the SSH looks okay. Can you elaborate? What exactly is the problem?
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
Okay, I suppose then the SSH connection/retrieval does not work... Wrong username, password, IP, path or filename maybe? Connection problem?
everything is correct
Okay, sorry, no idea here then. Good luck anyway! :)