rsnapshot on OMV6 and remote server backup

  • hi folks


    I installed rsnapshot plugin.

    I tried to configure it via gui, but it seems that the only possibility is to run rsnapshot on local folders.

    What about if I want to use rsnapshot to backup remote servers?


    I know (i use it in other environments non OMV managed) that it is possibile to update the /etc/rnapshot.conf file, including the rsnapshot over ssh parameters.

    How can i find the rsnapshot.config file used by OMV?


    thanks again for your support

    Vincenzo

    • Official Post

    I tried to configure it via gui, but it seems that the only possibility is to run rsnapshot on local folders.

    What about if I want to use rsnapshot to backup remote servers?

    The plugin can't do that. rsnapshot is really only good at pulling remote backups. So, the best way to do this is use something like sshfs to mount the remote server as a local filesystem and then create a shared folder from that mount. Just make sure sharerootfs is installed.


    How can i find the rsnapshot.config file used by OMV?

    The plugin creates one file for each rsnapshot job you create. They are located in /var/lib/openmediavault/rsnapshot.d. But I wouldn't edit those since any changes will be overwritten by the plugin.

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

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

  • Hi


    thanks. In the end I decided to use RSNAPSHOT locally.


    In OMV6, Is there a way to change the date /time when the job runs? Where can I look for?

    thanks

    vincenzo

    • Official Post

    Is there a way to change the date /time when the job runs? Where can I look for?

    The plugin is really designed to run every hour but I did add environment variables for when the daily/weekly/monthly/yearly jobs runs - set OMV_RSNAPSHOT_STARTING_HOUR in /etc/default/openmediavault with sudo omv-env set OMV_RSNAPSHOT_STARTING_HOUR 3

    https://github.com/OpenMediaVa…in/omv-rsnapshot-conf#L50

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

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

  • Hi


    cool!


    For my better understanding.

    This means that if I set:


    OMV_RSNAPSHOT_STARTING_HOUR 5, then for the code below:


    hour1=${OMV_RSNAPSHOT_STARTING_HOUR}

    hour2=$(expr ${hour1} + 1)

    5 * * * * root /var/lib/openmediavault/cron.d/rsnapshot hourly --> runs at 00:05

    30 ${hour2} * * * root /var/lib/openmediavault/cron.d/rsnapshot daily --> runs at 06:30

    30 ${hour1} 1 * * root /var/lib/openmediavault/cron.d/rsnapshot monthly --> runs at 05:30

    00 ${hour1} 1 1 * root /var/lib/openmediavault/cron.d/rsnapshot yearly --> runs at 05:00


    but if I want to yearly run at 2pm? what can I do?


    thx

    vincenzo

    • Official Post

    but if I want to yearly run at 2pm? what can I do?

    There is only one variable. If you want to run at 2pm, you would need to set the variable to 14. Why would yearly need to run at a different time?

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

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

  • because I have additional other jobs than run in more or less the same hours..


    I'm trying not to overlap.. for example:

    at 2pm: an rsync from a remote server to OMV server

    then i have to put a job for rsnapshot monthly (Jan 1st) into OMV server

    and the same for the yearly...


    therefore I was thinking to separate the jobs..

    • Official Post

    I guess I still don't understand what you are trying to do. You want monthly jobs that run at different times than yearly? Why not run all rsync jobs at one time and all rsnapshot jobs at another time?

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

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

    • Official Post

    So run rsync at 12 (or whatever time you want) and rsnapshot at 14. I don't see where the problem is.

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

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

Participate now!

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