Rsnapshot plugin overflows system disk when copying to inaccessible remoemount

  • Good afternoon.

    On my system I use the openmediavault-rsnapshot 7.0 plugin to backup important data to a remote machine via remotemount.

    But when the remote machine is not accessible on the network, then during the next backup the system disk in the /srv/remotemount directory overloaded 100% of the free space and the operating system becomes inoperable.

    How can I avoid this problem?

    And why is it impossible to make an openmediavault-rsnapshot plugin for remote backup via rsync? :(


    • Official Post

    How can I avoid this problem?

    Make the remote server not drop the connection.

    why is it impossible to make an openmediavault-rsnapshot plugin for remote backup via rsync?

    Because the remotemount plugin can't control the remote server. If you just want an rsync backup, I would use rsync. Otherwise I recommend using something that doesn't require mount points and made for remote backups like borgbackup. And while the rsnapshot plugin could check to see if the mount is mounted before starting the rsnapshot backup, it could drop at any time.

    omv 7.4.14-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.2.16 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Make the remote server not drop the connection.

    I won't be able to keep track of this because the remote machine doesn't support automatic startup after a power failure.


    Because the remotemount plugin can't control the remote server. If you just want an rsync backup, I would use rsync. Otherwise I recommend using something that doesn't require mount points and made for remote backups like borgbackup. And while the rsnapshot plugin could check to see if the mount is mounted before starting the rsnapshot backup, it could drop at any time.

    I used the rsync plugin for network copying before and had no problems with it, but it doesn't support versioning.


    Because the remotemount plugin can't control the remote server.

    Doesn't rsnapshot use the rsync protocol? If the remote machine is not accessible in rsync, it simply throws a copy error.


    Otherwise I recommend using something that doesn't require mount points and made for remote backups like borgbackup

    I've been looking towards borgbackup for a long time, but it seems too complicated to me to set up and restore backups in the event of a complete failure of openmediavault. And from rsnapshot or rsync I can extract backups files ready-made and use them if the main storage fails.

    • Official Post

    I used the rsync plugin for network copying before and had no problems with it, but it doesn't support versioning.

    I rsync to the remote server and then use rsnapshot on that copy. I know it doubles the copies but that is ok for me because it is even more backup.


    Doesn't rsnapshot use the rsync protocol?

    Yes but it can't do push syncs. I didn't write rsnapshot. So, I can't do anything about that.


    I've been looking towards borgbackup for a long time, but it seems too complicated to me to set up and restore backups in the event of a complete failure of openmediavault.

    Setup guide - [How-To] Make backups with Borg using borgbackup plugin


    Restore is one extra step over rsnapshot - you mount an archive and then everything is the same as rsnapshot.

    If the remote machine is not accessible in rsync, it simply throws a copy error.

    The problem is that rsnapshot uses one cron job to kick off all jobs. If one fails, it wouldn't run any of the other jobs. I would prefer to not rewrite a large part of the plugin.

    omv 7.4.14-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.2.16 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I rsync to the remote server and then use rsnapshot on that copy. I know it doubles the copies but that is ok for me because it is even more backup.

    This is a simple and interesting idea


    Yes but it can't do push syncs.

    Thanks for the explanation, it's clear now


    Restore is one extra step over rsnapshot - you mount an archive and then everything is the same as rsnapshot.

    It's scary and confusing, but I think I need to try this.

Participate now!

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