[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

restore using full archive file name. bug



When I try to restore using the full archive file name I get this error,
 Error: Archive does not contain a valid ezjail properties file.
  Some jails properties are missing.

but when I restore using just the jailname it works. In both cases
it's the same file. A log of the events follows


# /usr/jails >ezjail-admin list
STA JID  IP              Hostname                       Root Directory
--- ---- --------------- ------------------------------ ------------------------
DR  12   10.0.10.2       mydefault2                     /usr/jails/mydefault2
DS  N/A  10.0.10.2       mydefault1                     /usr/jails/mydefault1

# /usr/jails >ls /usr/jails/archive/
# /usr/jails >
# /usr/jails >ezjail-admin archive -d /usr/jails/archive mydefault1

# /usr/jails >ls /usr/jails/archive/
mydefault1-201005270956.04.tar.gz

# /usr/jails >ezjail-admin delete -w mydefault1

# /usr/jails >ezjail-admin list
STA JID  IP              Hostname                       Root Directory
--- ---- --------------- ------------------------------ ------------------------
DR  12   10.0.10.2       mydefault2                     /usr/jails/mydefault2

# /usr/jails >ezjail-admin restore -d /usr/jails/archive mydefault1-201005270956.04.tar.gz
Error: Archive does not contain a valid ezjail properties file.
  Some jails properties are missing.

# /usr/jails >ezjail-admin restore -d /usr/jails/archive mydefault1
Warning: Some services already seem to be listening on all IP, (including 10.0.10.2)
  This may cause some confusion, here they are:
root     master     983   12 tcp4   *:25                  *:*
dhcpd    dhcpd      887   5  udp4   *:67                  *:*
root     syslogd    647   7  udp4   *:514                 *:*

# /usr/jails >ezjail-admin list
STA JID  IP              Hostname                       Root Directory
--- ---- --------------- ------------------------------ ------------------------
DR  12   10.0.10.2       mydefault2                     /usr/jails/mydefault2
DS  N/A  10.0.10.2       mydefault1                     /usr/jails/mydefault1