Backup to USB when connecting the device

    • Official Post
    • Official Post

    The usbbackup plugin uses rsync to copy from the source to the destination. Only changed data will be copied. But it does not keep previous versions of the files. So it is not an incremental backup where you have an initial full backup and then several incremental backups.

    • Official Post

    Did you read the linked guide?


    Quote

    During this process OMV is mounting the filesystem, runs the backup, unmounts the drive and puts it in stadby mode (no rotation of spinning drives) without user interaction.

  • Unfortunately the backup is not started when inserting the usb device

  • a manual start issues error :

    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LC_ALL=C.UTF-8; export LANGUAGE=; mount -v --source '/dev/disk/by-uuid/b8ae040a-afb2-4fc5-9a42-9a556a159122' '/srv/00014cd7207db2459665ae27b42d6821' 2>&1' with exit code '32': mount: /srv/00014cd7207db2459665ae27b42d6821: mount(2) system call failed: Structure needs cleaning.

    dmesg(1) may have more information after failed mount system call.


    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LC_ALL=C.UTF-8; export LANGUAGE=; mount -v --source '/dev/disk/by-uuid/b8ae040a-afb2-4fc5-9a42-9a556a159122' '/srv/00014cd7207db2459665ae27b42d6821' 2>&1' with exit code '32': mount: /srv/00014cd7207db2459665ae27b42d6821: mount(2) system call failed: Structure needs cleaning.

    dmesg(1) may have more information after failed mount system call. in /usr/share/php/openmediavault/system/process.inc:247

    Stack trace:

    #0 /usr/share/php/openmediavault/system/filesystem/filesystem.inc(728): OMV\System\Process->execute()

    #1 /usr/share/openmediavault/engined/rpc/usbbackup.inc(252): OMV\System\Filesystem\Filesystem->mount()

    #2 [internal function]: OMVRpcServiceUsbBackup->execute()

    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array()

    #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()

    #5 /usr/sbin/omv-engined(544): OMV\Rpc\Rpc::call()

    #6 {main}

    • Official Post

    system call failed: Structure needs cleaning

    Run a filesystem check or wipe the drive (data will be deleted) and create a new filesystem.


    Enable email notification so that you know when the rsync job is completed. You must not interrrupt the rsync job by pulling the drive too early.

  • Run a filesystem check or wipe the drive (data will be deleted) and create a new filesystem.


    Enable email notification so that you know when the rsync job is completed. You must not interrrupt the rsync job by pulling the drive too early.

    I indeed ended up doing a scrub of the device although I had previously remove the partion table with a fedora installation this apparently was not enough. It now starts and ends a backup unmounting it at the end.


    Interestingly, if I remove the device and attach it to the fedora it cannot mount or read the device. (bad fstyp, bad option, bad superblock) is there a way to tell if the backup went through properly?

  • Interestingly, if I remove the device and attach it to the fedora it cannot mount or read the device. (bad fstyp, bad option, bad superblock) is there a way to tell if the backup went through properly?

    Exactly how are you trying to mount the disk in Fedora? What command are you using?

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.


  • theking2

    Added the Label resolved

Participate now!

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