Rotating USB-Backup - best practice

  • Hi *,

    Long story short: I would like OMV to mount one of the connected usb-hdds every evening and neither unmount it the next morning, so that it can be changed if necessary.

    I know how to do this with cron, shellscript, but not how to teach omv to do this, does anyone know a tutorial or have any tips which steps are necessary before "unmount /.." resp. "mount /..." ?


    Thanks Flo

    • Official Post

    You have to do that on your own.

    The openmediavault-usbbackup plugin starts the sync process only if you plug the USB device (triggered via UDEV rule that is watching for the specific ADD notification of the device). The filesystem is unmounted when the sync process has been finished.

  • Ok, as far as i have read the best procedure ist to use an empty folder as share in the webui and link the manual mountpoint to that folder?


    I am really surprised that i could find no howto or topic about that procedure in the forum....


    Thanks

  • My apologies for the previous response.


    While I'm comfortable working with Linux and shell commands, I'm unfamiliar with specifically manually mounting and unmounting USB HDDs to ensure they're recognized by OMV for NFS sharing. I haven't found a clear solution in the forum regarding this issue.


    I was thinking of potentially having OMV share a local folder on the root filesystem (using the plugin) and then manually linking or mounting the USB HDD to that specific folder, effectively concealing any changes from OMV.


    Alternatively, is there a better approach? Perhaps using a CLI script to disable the NFS share, unmount the HDD, remount it, and re-enable the NFS share? If so, could you provide guidance on how to accomplish this?



    Thanks for your help!

    • Official Post

    Here you can read about triggering a script when a USB drive is plugged in (ignore the parts related to encryption)


    jcd

Participate now!

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