Help out a Beginner - Backup worries. Clone, Rsync. OMV6+Photoprism.

  • Hi everyone.

    I have been experimenting a bit with OMV in virtualbox and have decided to set up a "real" server with an old PC i have laying around.

    Please bear with me, I am a beginner at this, with very limited Linux-experience but I do understand a bit about computers, so I should be able to follow instructions.

    I am an above average copy-paster.


    (warning; semi-long post - If you want to go straight for questions, please scroll to the end.)


    So the idea here is to use OMV 6 with the Photoprism plugin for storing, tagging, browsing, editing, adding to my photolibrary.

    This is the sole purpose of the thing, as of now.

    I will probably be experimenting with other stuff later on.


    My problem now is of course the back-up strategy.

    I know there are probably tons of earlier threads on this, and trust me I have been reading/watching for days.

    But I would just like to have some stuff cleared/confirmed.

    Since this will where all my pictures will live, It would break me if it fails and I loose them all, and the progress made in photoprism (tagging, folders -metadata).


    My idea is this, please correct me if I am a dumb dinosaur.

    I have the OS on a 120gb SSD and one 2tb, 3.5 HDD for data.

    Because of a lack of connectivity and space in the case, I will be forced to use USB for the back-up drives. (Is it very bad? except for speed?)


    1. Identical SSD and HDD inside usb-bays. These are for cloning OS and DATA-drive, using clonezilla (I guess?). I want the clones in order to have an easy way of just replacing a failing drive.

    Also these disks will be kept off-site and probably rotated with the current ones after backup.
    Since this is a manual procedure it will be made maybe bi-weekly or monthly. (Still haven't experimented with clonezilla, only read about it)

    But I guess it is a pretty straight-forward process(?) Would it be the same if I clone the drives connecting them to another system, using whatever software in windows/linux?

    - Also is there a way to automate clones?


    2. On top of the clones, I would like to have a more frequent backup, at least of the data-drive. This would be an external 2tb usb drive for example, connected at all times.

    Using Rsync to backup the 3 folders in Data-drive (Images, Data, Import) - The 3 photoprism folders. Running automatically probably twice a week or every other day.

    Now my questions about Rsync.

    --delete. I feel like I want to use the delete here because if I delete a picture live, I probably won't want it in the future, thus no need to have it still backed up, using

    storage-space.

    What are some dangers of --delete in my situation? What would you recommend?

    Can I have a second rsync to a bigger drive, without delete, One with and one without? Is that just stupid? ;)

    Other stuff to watch out for?

    Dangers of auto-backups?


    I don't remember exactly but I saw a comment about if the server were to restart, the names of the drives might change, and would completely mess up the whole thing (backup drive would copy to the internal one) Don't remember what method they used though.

    (I think it was an automated sudo DD command.) something like that..

    It scared the crap out of me when I read it.

    In my scenario, I do not run this risk... right?


    I will spend the next few days experimenting with backing up and restoring

    What would you recommend to use, usbbackup-plugin, other backup plugin from omv-extras or just rsync directly in omv, maybe a combo, something else?


    In case of disaster scenarios:

    1. OS drive dies: plugin clone / can, should I Rsync the OSdrive also, how would I restore? / Would it be the same to normally install OMV to a new drive exactly like before, all settings and services etc and then point photoprism to existing directories on data-drive?

    2. Data drive fails, plugin clone / Rsynced - how would I restore?


    Also if anyone dabbles with photoprism; I guess everything important to metadata and tags added to photos etc are saved in the "Photoprism Data" folder and "Images", Is the database and photos enough

    to restore everything to the way it was before a failure?


    Is my plan not enough, too much, am I just paranoid?

    What would you do? I would like to avoid any clouds.


    Thank you for reading and please excuse the long post and my ignorance.

    Very thankful you for your input and help!


    Summary of questions:

    1. use USB for the back-up drives. (Is it very bad? except for speed?)

    2. Clonezilla: Would it be the same if I clone the drives connecting them to another system, using whatever software in windows/linux?

    - Also is there a way to automate clones?

    3. Rsync: What are some dangers of --delete in my situation? What would you recommend?

    4. Can I have a second rsync to a bigger drive, without delete, One with and one without? Is that just stupid? ;)

    5. Other stuff to watch out for?

    6. Dangers of auto-backups?

    7. usbbackup-plugin, other backup plugin from omv-extras or just rsync directly in omv, maybe a combo, something else??

    8. OS drive dies: plugin clone / Can, should I Rsync OSdrive also, how would I restore? / Would it be the same to normally install OMV to a new drive exactly like before, all settings and services etc and then point photoprism to existing directories on data-drive?

    9. Data drive fails: plugin clone/Rsynced - how would I restore?

    10. What are the important stuff in photoprism in order to restore with all tags, photos, metadata etc intact.

    11. What would you do?

    <3

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!