I need some guidance for a rapberry pi2 server

    • Offizieller Beitrag

    rsnapshot ou Snapraid ?

    Snapraid isn't backup either. It is raid that isn't realtime.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • Good explanation ryecoaaron. I always thought Raid was for backup.


    The what is best : rsnapshot ou Snapraid ?

    I'll explain the difference between the two solutions you mention, for this I'm going to simplify it to the extreme that I leave details out


    Snapraid is used to ensure the integrity of your data (protection against silent corruption / bitrot). Since this solution normally keeps the data on the same system, its not considered a backup. e.g. if your system gets a virus, mallware, hack, electronic falure that kills your harddisks, etc this data is gone.... so not a backup.


    rsnapshot is used to make copies of your data to another location or drive. Its benefit compared with just copying files is that it has the option to only copy changed files since your last update (saves storage space).


    I believe you are looking to backup your data, then you should choose rsnapshot, its a very decent solution.


    @ryecoaaron, good catch. Going to work on a article to explain the difference on the wiki.

  • Rsnapshot uses mirroring (like RAID1), which means that you have one data drive and everything is duplicated on the backup drive.
    - Pro: If the data drive fails, you can plug in the backup drive an read the files.
    - Con: You use 50% of drives for the backup.


    SnapRAID uses parity (like RAID5), which means that you have 1 to 4 data drives for one parity drive.
    - Pro: You use 20 to 50% of your drives for the backup depending on the total number of drives.
    - Con: Recovering files from the parity data requires a manual operation on the command line.


    If you have only 2 drives of the same size, then you might as well stick with Rsnapshot. For 3 drives or more, consider SnapRAID.

  • see my purple remarks to have a complete picture


  • 1. RAID is not a backup. If it has the word/acronym/phrase "RAID" in it, it is not a backup solution and you are risking losing all of your data. Yes, this means SnapRAID is NOT A FREAKING BACKUP.


    2. Using rsnapshot for backup is only useful if it creates a complete copy of the data for you to disconnect and store elsewhere. If the "backup" drive remains connected to your system, it isn't a backup.


    3. When it comes to backups, the correct strategy is 3-2-1. Three copies of all your data, in Two different formats, One of which is off-site. That could be spare drives and cloud storage, spare drives and tape, tape and cloud storage, etc. Personally I'm using a remote NAS at my parents' house about 4 hours away (therefore protected in case of most natural disasters) that uses Syncthing to keep up to date, and ZFS snapshots at both ends to allow for things like crypto virus recovery. Considering using Amazon Cloud Drive to add another layer.


    This is only for sensitive/personal data like tax receipts from TurboTax, family photos, CrashPlan backups for all the PCs, personal documents, etc. I also throw in my ebook collection and config files for the routers switches and access points in my lab, because it's useful data that is low volume.


    The rest tends to be OS install ISOs, media files, and other bulk data that I can re-download or re-rip if needed. (For media, re-rips from original constitutes the second format anyhow.)


    So far the only thing here that really comes close to an actual backup is rsnapshot, and I can't even say that's the case if it uses hard links and expects to be connected to the original machine. I don't know, I've never installed it.

    • Offizieller Beitrag

    @GreenBean Some of your comments are wrong and rsnapshot is not as vulnerable to viruses. If you don't share any of the backup volume, how is the virus going to ruin the rsnapshot backups? I have rsnapshot running at a school I help and they have been hit by the crypto virus. Guess how many files we lost? None that were older than 1 hour because rsnapshot was setup to take hourly backups.


    The first copy to the backup drive is not a hard link. How do you hard link across drives?? You can't. Only unchanged future snapshots will be hard linked to the first copy. So, a virus removing the file will not ruin your backup.


    And yes, you use more than 50% but not much more unless you are constantly editing videos. Most people don't have 100% full drives. So, rsnapshot to another drive of the same size usually works well.


    With remotemount, you can rsnapshot to a remote server as well.


    I will say once again that rsnapshot and snapraid are not competing services. snapraid is not backup and rsnapshot is not bitrot protection/redundancy. They can work very well together.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

    • Offizieller Beitrag

    So far the only thing here that really comes close to an actual backup is rsnapshot, and I can't even say that's the case if it uses hard links and expects to be connected to the original machine. I don't know, I've never installed it.

    It doesn't expect to be connected to the original machine. It is just using an rsync command. If you could mount the drive before the rsnapshot run and unmount after, that would work just fine. You should try it. It is very good.


    If the "backup" drive remains connected to your system, it isn't a backup.

    I disagree with this. Having a local backup that isn't accessible is still a backup. It shouldn't be your only one. I backup locally multiple times a day (protects against drive failure). Backup to a remote server daily (protects against server failure). and backup to tape every few weeks (not kept at home,protects against location desctruction). I feel very secure with this and have been very successful recovering from problems.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

    Einmal editiert, zuletzt von ryecoaaron ()

  • This is getting waaaaaay to technical for the asked question


    The thread starter should use rsnapshot for now and read some more about backups&filecorruption/bitrot to decide if he needs more then only a backup (just a backup goes a long way and is much better then most people have).


    Inline my comments for further technical discussion I tried to stay away from, this doesn't help the thread starter.

    • Offizieller Beitrag

    I don't have time to respond to every comment. Yes, it was a single station but I recommended rsnapshot'ing from drive A to drive B. If you only share drive A, how would anything erase what is on drive B (other than a Linux virus)? If the file is deleted on drive A, it is not deleted from every backup on drive B as you can see from backup.



    I call this pretty safe backup unless the system fails destroying both drives at the same time. Which is why I backup to a remote server as well. If the building burns down, I still have my offsite tape. What am I missing??


    Just for reference on how much additional space rsnapshot might use in a typical situation... I am backing up three 4TB drives (with 6.2 TB between the three) with rsnapshot to one 8TB drive. It is mostly Linux ISOs, movies, and pictures. The 8 TB drive is using 6.5 TB.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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 don't have time for such discussions either, I prefer discussions where someone (preferably me) learns something. This isn't such a discussion.


    There are so many reasons that a local backup can get whipped/damaged, a few things that comes to mind:

    • computer is bumped while running;
    • Air intake get glogged in the summer unnoticed
    • Motherboard fail (poof conductor might lead to poof backup)
    • Powersupply fail (been there... :S)
    • Sudden power failure might even do the trick in rare situaties
    • Power Voltage Surges
    • water damage
    • fire!
    • getting hacked (especially on default firewalls... if existing)
    • getting a virus (jup they are there)
    • other human errors
    • etc.


    Trusting only on local backups is really insane, doing a remote backups is sane.


    I think you are misinterpreting my first message and your last reply has a totally different context especially mentioning the remote backup. At this point its not even clear to me at what point you disagree.


    We both advice rsnapshot from the given options... great! Case closed

  • Wow, Guys !


    I asked a little ans simple question and I'm getting lots and lots of very usefull information.


    I'm sorry if you're not learning anything, but I do and you're making me understang things
    so I can make better choices. So thank you.


    To me, this is much better than spending hours, days and even weeks on the net trying to fond something.


    As I told Tinh_x7 on another board, I'll be pretty busy in the next few days. But, be sure I'll read everything carefully as soon as I come back.


    Oh ! for those who care, I'm quitting RPi2 for a real computer. RPI2 has already reached it's limits. So be glad ! :)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!