Backup a folder with rsync

  • Hello,


    I'm trying to organize my backup strategy. I use omv-backup, to backup my OS partition every night (DD mode). Now I want to backup my sharefolder AppData on another disk too.


    With Rsync in OpenMediavault, is it possible to keep X days of backup and create sperated folders like :


    • Backup/AppData/2020/06/29/
    • Backup/AppData/2020/06/28/
    • Backup/AppData/2020/06/27/
    • Backup/AppData/2020/06/26/

    etc....


    Thank you !

  • Galiwyx

    Added the Label OMV 5.x
  • Galiwyx

    Added the Label resolved
  • Quick question, isn't possible to choose a specific hour ?


    If I understand correctly, 1 backup will created everyday ? But at what time ?



    Update : you need to manually edit the cron file at /etc/cron.d/openmediavault-rsnapshot


    If I understand correctly, the cron is executed every night at 03:30


  • I was just thinking about this very thing. I’m thinking “What good is a backup stored on the machine it is intended for?” It needs to be stored remotely. Here is what I’m thinking:

    • Create a shared folder just for backups. Name it something like rpi4backup to distinguish it from backup folders of your other servers.
    • Set the Backup plugin to backup to that dedicated share, and set it to keep x number of backups. Set the cron to run daily or what ever you want.
    • Set another server (your backup machine) to pull a Rsync job in Scheduled Jobs just for the dedicated share and set it to run on the same schedule as is set up for the backup.
    • Set the same jobs up in reverse to backup your backup server. What? You don’t have a backup server?

    Simple and sure backup and restore: In a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-SOURCE/ /srv/dev-disk-by-label-DESTINATION/ (HT: Getting Started with OMV5)
    OMV Version: Ver. 5 (current) - Hardware: NanoPi M4, Nextcloud, Plex, Airsonic, Booksonic, Calibre, & Heimdall - Acer Aspire T180, backup - Odroid XU4, Pi-Hole (DietPi) - Testing/Playing: hc2, xu4, Pi 3B+, Odroid H2, and HP dx2400, Debian 10 XFCE.

Participate now!

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