Help to backup running rpi on my NAS.

  • Hi,


    I'd like to automate the backup of my multiple raspberry pi (osmc, teleinfo, home-automation, ...).
    Some of them are not easily accessible, so unplug the sd card and make an iso image is not a convenent way to go.


    I've googled for such a solution, and found post about "dd over ssh" or "rsync".
    But I think it's over my competences, so need a little help ^^


    The best would be to make incremental image backups every nights.
    The rpi image/filesystems will not change a lot (except logs, some local DBs...) because all data are stored in the nas and accessed in NFS/SMB.
    If incremental backup is not possible, a rolling backup maybe (keep the last 10 backups for example)


    Concerning the backup format, the simplier in case of rpi sd crash would be to have *.iso images. (but not compatible with the "incremental" way i suppose).
    Don't know if it's even possible to make an image of a running linux system...


    Any help or suggestion would be geatly appreciated ;)
    And if I have time and skills, I could try to make a plugin.


    thanks

  • For the OS: openmediavault-backup


    It only keeps one backup but rsnapshot fixes. Unless you make nightly changes or really need your logs, you don't need nightly backups either. You can schedule it in Scheduled Tasks with the command: omv-mkconf backup backup as root. Restoring isn't as easy but you can worry about that when you need it.


    For data: openmediavault-rsnapshot


    Keeps lots of backups and is scheduled but is for data only.

    omv 5.6.13 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.2 | kvm plugin 5.1.6
    omv-extras.org plugins source code and issue tracker - github


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

  • Aaron, you are talking about the System Backup TAB but could you not use the Clonezilla TAB and make an image? Restore image for base and then the RSnapshot to bring image up to date.

  • Not on an RPi.

    omv 5.6.13 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.2 | kvm plugin 5.1.6
    omv-extras.org plugins source code and issue tracker - github


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

  • You could run clonezilla on another system but the backup plugin boots the system from an ISO. So, that is why I said it won't work on an RPi.

    omv 5.6.13 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.2 | kvm plugin 5.1.6
    omv-extras.org plugins source code and issue tracker - github


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


  • Hi.
    I'm not sure to understand sorry.
    My raspberries are not running omv, but various linux distros (osmc, raspbian, ...)
    Only my main haswell NAS/Server is running OMV.
    I'd like it to orchestrate and store the backups of all the rpis.


    found this link

  • I'm not sure to understand sorry.
    My raspberries are not running omv, but various linux distros (osmc, raspbian, ...)
    Only my main haswell NAS/Server is running OMV.
    I'd like it to orchestrate and store the backups of all the rpis.


    found this link


    This is outside the scope of OMV. You are just using OMV for storage. You need to look at the specific distro for help backing it up. You would probably just use a cron job to start some kind of rsync command to OMV's rsyncd server.

    omv 5.6.13 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.2 | kvm plugin 5.1.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    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!