diff --git a/conf/config.xml b/conf/config.xml
index 747c329..8c72176 100644
--- a/conf/config.xml
+++ b/conf/config.xml
@@ -14,4 +14,4 @@
False
-
\ No newline at end of file
+
diff --git a/scripts/restore b/scripts/restore
index bc63c4a..cef1846 100755
--- a/scripts/restore
+++ b/scripts/restore
@@ -18,6 +18,21 @@ ynh_restore_file --origin_path="$install_dir"
chmod -R o-rwx "$install_dir"
chown -R "$app:" "$install_dir"
+#=================================================
+# RESTORE THE DATA DIRECTORY
+#=================================================
+ynh_script_progression --message="Restoring the data directory..." --weight=1
+
+ynh_restore_file --origin_path="$data_dir" --not_mandatory
+
+chown -R "$app:www-data" "$data_dir"
+
+if [ ! -f "$data_dir/config.xml" ]; then
+ ynh_add_config --template="config.xml" --destination="$data_dir/config.xml"
+ chmod 400 "$data_dir/config.xml"
+ chown "$app:$app" "$data_dir/config.xml"
+fi
+
#=================================================
# YUNOHOST MULTIMEDIA INTEGRATION
#=================================================