rsnapshot improvment suggestion

    • OMV 4.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • rsnapshot improvment suggestion

      Hi,

      Thank you for rsnapshot plugin, it works very well. I think there is a possible easy improvement to make on it, about the way it schedules its jobs.

      Today, hourly, daily, monthly and yearly cron jobs are executed with schedules set "by hand" by the dev. They are set so that two rsnapshot jobs do not collide with each other, which is not optimal. Instead of this raw duration guess, an easier and more efficient way would be use to use a lock (with the flock command) within /var/lib/openmediavault/cron.d/rsnapshot. That way, you could schedule all jobs to the same time (or nearly same time if you want to guarantee order), and flock would ensure jobs are launched immediately after the previous one.

      In case you don't know the flock command, there are many tuto on the net for this.

      Can it be implemented in the plugin?
      Thank you!
    • Nas-turally wrote:

      Can it be implemented in the plugin?
      I know how flock works but I still don't see the need. Jobs may run at the same time but they really don't "collide" since they are syncing to different directories (hourly to hourly directories, daily to daily directories, etc). Are you trying to avoid these syncs running at the same time? I've never had a problem with it and I use this plugin everywhere.
      omv 4.1.9 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.10
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • It seems my answer got lost. I was saying that I backup several disks (2ssd and 1hdd) to a single backup hdd - which is quite a classical scenario. Unless I'm wrong (or too old style?), I believe that doing several backup operations simultaneously to the same device, espercially a mechanical one, is not good, for performance reason and also for the life time of the disk. Am i right? What do you think of that?
    • Nas-turally wrote:

      I believe that doing several backup operations simultaneously to the same device, espercially a mechanical one, is not good, for performance reason and also for the life time of the disk. Am i right? What do you think of that?
      It would depend on the type of backup. Not really sure how much more wear it puts on the drive since the same amount of data is being written. And remember, rsnapshot is only creating hardlinks for files that have not changed. So, how frequently do you have backups that take longer than a half hour?
      omv 4.1.9 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.10
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!