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
499 stars 103 forks source link

Instructions for defining source and target devices (and paths) #259

Closed gadgetmies closed 7 months ago

gadgetmies commented 7 months ago

Is your feature request related to a problem? Please describe. Not really a problem per se, but I cannot find any instructions on how to define the source and target devices. My target device has multiple partitions (e.g. boot and root for the RPi) and thus by default the script selects the wrong source and target.

Describe the solution you'd like I would like to at least define the source and target block devices (i.e. e.g. /dev/sdd4). Currently the UI and the backup.py script seem to automatically select the devices, which for my case does not work. Perhaps the configuration UI could just have an option for defining the devices using a simple input (a drop down would be even better).

Describe alternatives you've considered I noticed that the backup.py script has a DeviceIdentifierPresetSource and DeviceIdentifierPresetTarget options that sound like could be the thing I need. However I was unable to find instructions for command line use and documentation on the arguments. Adding some documentation to the wiki on how to use the script from command line would be nice. Even better would be that the script would print out instructions for use when it is run without proper arguments.

outdoorbits commented 7 months ago

I could imagine to add a device preselection to to web UI - just like the other modifications. Would this do the job for you?

gadgetmies commented 7 months ago

Perhaps, if you could point me in the right direction. Perhaps documenting the command line arguments to the script could be the first step so that I can verify I understand the code correctly. Not that confident with Python, so assistance would be appreciated!

outdoorbits commented 7 months ago

If you work on the command line, you could use rsync directly. You can find all the arguments at the end of backup.py,below "if name == "main":".

outdoorbits commented 7 months ago

I just added the option to define partitions in web UI (see modifications). Does this help?

gadgetmies commented 7 months ago

Wow! Seems like just what I'd need! Thanks!

Cannot test the functionality right now however, as I somehow busted my RPi SD card. I'll try to find time to test in the upcoming days.