Aller au contenu

Omv Usb Backup Site

sudo udevadm control --reload-rules sudo udevadm trigger Check USB insertion event:

# Example wrapper script in /usr/local/bin/custom-usb-backup.sh rsync -av --exclude='*.tmp' --exclude='Thumbs.db' /srv/dev-disk-by-uuid-xxx/ /srv/usb-backup/ Mirror mode restore: sudo rsync -av /srv/usb-backup/shared_docs/ /srv/dev-disk-by-uuid-source/shared_docs/ Incremental/Differential restore: Use rsync or copy manually – the USB contains the latest state as of the last run. 6. Troubleshooting 6.1 Backup fails with "device busy" Solution : omv usb backup

udevadm monitor --property --subsystem-match=block | Practice | Why | |----------|-----| | Use ext4 on USB drive | Preserves Linux permissions and symlinks | | Keep at least two USB drives | Rotate weekly to prevent single drive failure | | Schedule email notifications | Get alerted if backup fails | | Run mirror first, then incremental | Faster subsequent backups | | Label your USB drive | Avoid confusion if multiple drives used | | Test a restore every 3 months | Ensure backup integrity | 8. Uninstalling the Plugin sudo apt remove openmediavault-usbbackup sudo rm -rf /etc/usbbackup # removes configs 9. Alternative: rsync over USB (No Plugin) If you prefer manual control: multiple backup destinations)

Your OMV server will now automatically safeguard your data to USB every time you plug it in. For advanced setups (encryption, multiple backup destinations), consider combining with duplicity or borgbackup . omv usb backup

sudo chmod -R 755 /srv/dev-disk-by-uuid-source/shared_folder sudo chown -R root:users /srv/dev-disk-by-uuid-source/shared_folder Fix : Verify udev rule:

Faire défiler vers le haut