system("cd / && tar -xvz -p -f /tmp/restore.ipf");
#Here some converter scripts to correct old Backups (before core 65)
system("/usr/sbin/ovpn-ccd-convert");
- system("/usr/sbin/convert-xtaccess");
- system("/usr/sbin/convert-outgoingfw");
-
- #clean up system, if an old backup was restored
if( -d "/var/ipfire/outgoing"){
+ system("/usr/sbin/convert-outgoingfw");
rmtree("/var/ipfire/outgoing");
}
if( -d "/var/ipfire/xtaccess"){
+ system("/usr/sbin/convert-xtaccess");
rmtree("/var/ipfire/xtaccess");
}
}