Backup: added ovpn-ccd-converter script to restore. With this patch one is able to restore old backups and the openvpn clients get converted for new ccd-file

This commit is contained in:
Alexander Marx
2013-01-07 12:52:01 +01:00
committed by Michael Tremer
parent b643120c01
commit c490c6e802

View File

@@ -62,6 +62,8 @@ elsif ($ARGV[0] eq 'exclude') {
}
elsif ($ARGV[0] eq 'restore') {
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");
}
elsif ($ARGV[0] eq 'restoreaddon') {
if ( -e "/tmp/$ARGV[1]" ){system("mv /tmp/$ARGV[1] /var/ipfire/backup/addons/backup/$ARGV[1]");}