[LG G Pro 2] h8Aramex:
I just wrote a backup script for the same folders, just in case anything messes up.

There is also a path error, because "su" runs a command as superuser, and sees the files in different way.

BUT, why do we flash ALL the partitions?

I think we would have to ONLY flash the Recovery one, the rest just increases the risk of bricking.

Or am I wrong here?

Backup script:

@echo off
REM *****************************************************************
REM * This script was written by XDA member [h8aramex] *
REM * Email contact: hu.shizuku@gmail.com *
REM * *
REM * Target phone: LG G Pro 2 32GB *
REM * Target Model: D838 *
REM * Target version: d83820d *
REM * *
REM * Script description: *
REM * Backup crucial / recovery partition found on a G Pro 2. *
REM * *
REM * Original author: [yplim200] XDA member *
REM * Took the idea, and names from his post. *
REM * *
REM * *
REM *****************************************************************

Set COUNT=1
Set COUNTFULL=10
echo.
echo *******************
echo * Starting backup *
echo *******************
echo.
REM clean previous backup
rmdir /S /Q backupmin
mkdir backupmin
REM restart server / restart in usb mode
adb kill-server
ping -n 3 127.0.0.1 >nul
adb usb
ping -n 3 127.0.0.1 >nul
REM clean temporary folder and re-create folder
adb shell "rm -r /sdcard/backupmin/"
adb shell "mkdir /sdcard/backupmin/"
REM do full backup of each partition
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/recovery of=/storage/emulated/0/backupmin/recovery.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/aboot of=/storage/emulated/0/backupmin/aboot.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/boot of=/storage/emulated/0/backupmin/boot.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/dbi of=/storage/emulated/0/backupmin/dbi.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/laf of=/storage/emulated/0/backupmin/laf.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/persist of=/storage/emulated/0/backupmin/persist.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/rpm of=/storage/emulated/0/backupmin/rpm.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/sbl1 of=/storage/emulated/0/backupmin/sbl1.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/tz of=/storage/emulated/0/backupmin/tz.img"
echo * Progress %COUNT%/%COUNTFULL% *
set /A COUNT+=1
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/modem of=/storage/emulated/0/backupmin/modem.img"
REM
REM pull the files to the user pc
REM
echo * Progress: COPY - Pulling files. *
adb pull "/sdcard/backupmin"
REM delete temp folder
echo * Progress: DONE - Pulling DONE. *
move *.img backupmin
REM adb shell su -c "rm -r /sdcard/backupmin"
echo.
echo *******************
echo * Backup complete *
echo *******************
echo.
pause