###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
+# Copyright (C) 2007-2012 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
extract_files() {
echo "Extracting files..."
- tar xvf /opt/pakfire/tmp/files -p --numeric-owner -C /
+ tar xvf /opt/pakfire/tmp/files --no-overwrite-dir -p --numeric-owner -C /
+ echo "...Finished."
+}
+
+extract_backup_includes() {
+ echo "Extracting backup includes..."
+ tar xvf /opt/pakfire/tmp/files --no-overwrite-dir -p --numeric-owner -C / \
+ var/ipfire/backup/addons/includes
echo "...Finished."
}