outdoorbits / little-backup-box

This software turns a single-board computer into a versatile, pocket-sized backup solution. Especially for digital photography, this is the solution for backing up images and media files on mass storage devices when traveling or at events. Media content can be viewed and rated for the subsequent process.
http://littlebackupbox.com
GNU General Public License v3.0
504 stars 103 forks source link

Progress display #113

Closed thelightdecides closed 3 years ago

thelightdecides commented 3 years ago

Hello,

after installing the latest version I have a problem with the progress on the display and the log monitor in the web interface. The progress stops at about 90-100% and nothing happens after that. The Pi does not shut down. When I look at the transferred files, everything is backed up from the sd card to the ssd.

Best regards Thomas

dmpop commented 3 years ago

I fixed this one two days ago. I've just tried it and the fix works.

thelightdecides commented 3 years ago

I tried yesterday...I will try again later today.

thelightdecides commented 3 years ago

I tried again, completely new installation, same issue....

dmpop commented 3 years ago

Thanks for reporting back! Two questions:

  1. What type of backup do you run (source external or something else)?
  2. Do you run the backup automatically on boot (via cronjob), or do you use web UI?
thelightdecides commented 3 years ago
  1. Source external (SD-Card -> SSD)
  2. automatically
dmpop commented 3 years ago

Ah, I think I've found the problem. Looks like Stefan broke my fix. :-) Could you try this:

On the Raspberry Pi, open the little-backup-box/scripts/backup.sh file for editing. Replace this line 380

source "${WORKING_DIR}/poweroff.sh poweroff"

with this:

source "${WORKING_DIR}/poweroff.sh"
thelightdecides commented 3 years ago

Yes, this was the problem. With the modified line, it works fine!

dmpop commented 3 years ago

Excellent! I've reverted the "unfix" :-) Thank you for following up on this!

outdoorbits commented 3 years ago

Hi,

I do not understand, why this happend. But because poweroff.sh has to handle both, poweroff and reboot, it was intended to use this switch obligate. I will check that, but index.php also calls "poweroff.php poweroff" or "poweroff.php reboot" and it works. It's just working, because at the end the script just asks for it reboot else... And "else" is the winner. ;-)

Stefan


Mit meinem angefügten öffentlichen Schlüssel "0xE61B756E.asc" können Sie gerne verschlüsselte Mails an mich senden. Näheres auch unter https://www.gpg4win.de/

Am 2021-07-30 15:26, schrieb Dmitri Popov:

Ah, I think I've found the problem. Looks like Stefan broke my fix. :-) Could you try this:

On the Raspberry Pi, open the little-backup-box/scripts/backup.sh file for editing. Replace this line 380

source "${WORKING_DIR}/poweroff.sh poweroff"

with this:

source "${WORKING_DIR}/poweroff.sh"

-- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [1], or unsubscribe [2].

Links:

[1] https://github.com/dmpop/little-backup-box/issues/113#issuecomment-889892806 [2] https://github.com/notifications/unsubscribe-auth/AKY6K7MDSCRS35IX5LMWS23T2KSB5ANCNFSM5BICC2VQ

dmpop commented 3 years ago

Yeah, it was unclear to me too why source "${WORKING_DIR}/poweroff.sh poweroff" wasn't working. That's why I solved the problem with the if ... poweroff else reboot tweak. The important thing is it works now. :-)

outdoorbits commented 3 years ago

Hi, did you set POWER_OFF=true in config.cfg?


Mit meinem angefügten öffentlichen Schlüssel "0xE61B756E.asc" können Sie gerne verschlüsselte Mails an mich senden. Näheres auch unter https://www.gpg4win.de/

Am 2021-07-30 15:26, schrieb Dmitri Popov:

Ah, I think I've found the problem. Looks like Stefan broke my fix. :-) Could you try this:

On the Raspberry Pi, open the little-backup-box/scripts/backup.sh file for editing. Replace this line 380

source "${WORKING_DIR}/poweroff.sh poweroff"

with this:

source "${WORKING_DIR}/poweroff.sh"

-- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [1], or unsubscribe [2].

Links:

[1] https://github.com/dmpop/little-backup-box/issues/113#issuecomment-889892806 [2] https://github.com/notifications/unsubscribe-auth/AKY6K7MDSCRS35IX5LMWS23T2KSB5ANCNFSM5BICC2VQ

dmpop commented 3 years ago

Yes, of course. :-)