X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Finstaller%2Fhw.c;h=5cba2a261a81c55aafdb7d5eb696a6111f2c4e73;hb=e5ad6e2ab1c03961ab4e8e26e93e0bf69aa8e4b2;hp=17e0bbb01ef35fddff59cc787a1c1881331b72fb;hpb=026935a1375551f833997a95f63898112527a0f8;p=ipfire-2.x.git diff --git a/src/installer/hw.c b/src/installer/hw.c index 17e0bbb01e..5cba2a261a 100644 --- a/src/installer/hw.c +++ b/src/installer/hw.c @@ -1204,7 +1204,9 @@ char* hw_find_backup_file(const char* output, const char* search_path) { int hw_restore_backup(const char* output, const char* backup_path, const char* destination) { char command[STRING_SIZE]; - snprintf(command, sizeof(command), "/bin/tar xzpf %s -C %s", backup_path, destination); + snprintf(command, sizeof(command), "/bin/tar xzpf %s -C %s " + "--exclude-from=%s/var/ipfire/backup/exclude --exclude-from=%s/var/ipfire/backup/exclude.user", + backup_path, destination, destination, destination); int rc = mysystem(output, command); if (rc)