Updating my two servers for backup strategy.

  • Hello,



    I am looking to update my system and would be really grateful for advice before I do so, so I don’t mess it up – apologies, in advance, for the lengthy post!



    At present, I have a 6TB HDD in an Odroid HC2 (running OMV 4) – I use this for making and recording TV recordings via TVHeadend.



    I have a second x86 server (also running OMV4), which contains 2 x 2TB HDDS,1 x 1TB HDD and 1 x 500GB hard drive.



    The 1TB HDD contains all my super important stuff, which I occasionally back-up by occasionally inserting another 1TB hard drive into the server, dragging everything across, and then removing it again.



    Most of my setup is, therefore, unprotected (really stupid, I know - have just been very lucky) and the backup that I do have is really bad practice – if I got a virus on the hard drive, I would just spread it to the backup drive.



    My solution:



    I have just bought a new 14TB hard drive.



    What I want to do:



    Put the 14TB hard drive in the Odroid and use this as my only active server – i.e. it will have all my files on it.



    The other server (which shall have the 6TB HDD put in it), shall be used purely for back-ups.



    I am really nervous about where to start and what plugins to use.



    A few initial questions:


    • I want to do incremental backups to the backup server – which plugin should I use for this?
    • Should I merge all the disks in the backup server, into one, with another plugin?
    • How does the backup strategy work?E.g. does the main server wake up the backup server for updates or does the back up server automatically wake up, at a set time, to take updates from the main server?
    • How do I set the above up, without risking losing any of the files currently on the disks?

    Thanks.

  • You should start by making a full mirror backup of your hc2 disk with your new big disk connected via usb. One of the Getting Started guides in this post will guide you through a backup using Rsync. Starting on about page 64 of either guide there is a section on backups using Rsync. Once your backup is synced the guide shows you how to repoint your shares from the 6 to the 14TB so you can then swap the disks around and use the 6TB in your next step on the backup server. I always keep a mirrored backup disk connected to my hc2. It is your first backup defense if your main disk fails. You might consider getting a second 14TB disk for that.


    I also backup to a second machine using Rsync but it is not incremental. I think you would use the rsnapshot plugin to go that route but I don’t know anything about it. Here is the guide where I learned how to use Rsync between two machines.


    Others will have to chime in and answer the rest of your questions. Good luck.

    RAID is NOT a backup and not useful for most home users. Rsync makes true backup and restoration stupid easy, and it's built right in to OMV. Use this command in a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-NAMEofSOURCEdisk/ /srv/dev-disk-by-label-NAMEofDESTINATIONdisk/

    Hardware: OMV 5 (current) - NanoPi M4: Nextcloud, Plex, & Heimdall - Acer Aspire T180: backup - Odroid XU4: Pi-Hole (DietPi) - Odroid HC2, Raspberry Pi 3B+, and HP dx2400: testing.

  • want to do incremental backups to the backup server – which plugin should I use for this?

    As Agricola mentioned rsnapshot is for that. Rsnapshot will create snapshots of your data. Each snapshot is a complete view on your data, but if data have not changed since previous snapshots the files are only linked. So every new snapshot uses only disk space for data that have changed.


    Advantage compared to traditional incremental backup: you only have to restore the last snapshot to get all data. No need to restore first a complete backup and than every incremental backup.



    The 1TB HDD contains all my super important stuff,

    For that I would consider additional off-site backup. I use Duplicati for that and send the data to pCloud usind webDAV. Duplicati supports many targets like Backblaze, AWS etc.

  • Thank you both, very much, for this - extremely helpful.


    I have made sure to do more reading on this, as I wanted to make sure I didn't do anything backwards and wipe the wrong drive.


    What I now have is the following:


    1. HC2 containing the 14TB hard drive, which now has everything on it - "Server"
    2. My server, containing 11.5TB of hard drive, all joined as a single hard drive via the Union FS plugin - "Backup"


    I totally agree that Rsnapshot is best for my particular circumstances.


    As "Server" is constantly on and "Backup" sits in sleep mode when not needed, I want "Backup" to wake up at a certain time and take snapshot of "Server" at 3 am.


    I installed the Rsnapshot plugin on "Backup" but noticed that it only seems to allow my access to the drives that are locally stored.


    My next question, therefore, is how to allow access to the folders on "Server" - how to mount a shared folder on a remote machine.

  • Thank you macom.


    I have spent a few days messing with this but have run into another problem.


    Just to clarify:


    My active server (ip address 192.168.1.40) has a single share folder called "Server". This is being shared via NFS and contains a documents called "Documents". This is the folder that I am trying to back up at the moment.


    My backup server (ip address 192.168.1.37) has now got a UnionFS folder called "Backup".


    Here what I have done so far:


    On 192.168.1.37, I installed the remotemount plugin and successfully mounted the share with the following:


    Type: NFS
    Name: Servermount
    Server: 192.168.1.40
    Share: /export/Server
    NFSv4 = Off
    Options= rsize=8192,wsize=8192,timeo=14,intr,nofail these were the default


    I then went to the Rsnapshot plugin and tried to add a new backup job with the following:


    Name: Documents
    Device: Servermount
    Path: /Documents
    Permissions: R/W, R/W, R


    However, when I click on save, I get the following error:


    Failed to set file group to 'users' for '/srv/52d62ec6-054e-422e-9a36-a29afb5ab232/Documents/':


    What does this mean?

  • Further to the above, am I missing a step?


    Do I have remotemount the folder in question, then share add it as a shared folder and then add it as a job to Rsnapshot?


    Edit - I have tried to do both ways and I keep getting the error about setting the file group to 'users'.


    I am absolutely stuck, now.


    As per Solution#2 (https://forum.openmediavault.o…tions-to-common-problems/), I do not want to start messing around with NFS mounts outside of the web interface.

Participate now!

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