Restic backups of OpenMediaVault disk

  • Simple backup with restic 


    Restic backup


    Login to OMV as root user


    Run commands in terminal


    apt install restic

    restic self-update

    restic -r /srv/TOdisk/WhereToStoreBackups init

    enter password

    enter password


    save password in file /password.txt


    echo Secret>/password.txt


    Make first backup of OpenMediaVault system disk


    restic -r /srv/TOdisk/WhereToStoreBackups backup / -x --compression max -p /password.txt


    Backup Done


    Automate backups


    Go to System -> Scheduled Tasks


    Create new task


    User root


    Command to execute

    /usr/bin/restic -r /srv/TOdisk/WhereToStoreBackups backup / -x --compression max -p /password.txt

  • Backrest - WebUI for restic


    You need installed and running plugins:

    • openmediavault-compose
    • openmediavault-sharerootfs


    Go to Services -> Compose -> Files

    Click + select Add

    Paste above code in window

    1.png


    Click 1.

    and wait to docker download and setup container to show

    UP in 2.

    2.png


    Go to your web browser and open http://YouOMVipAddress:9898/ (YouOMVipAddress change to your LOCAL NETWORK ADRESS of OpenMediaValut server)


    Setting up Backrest GUI

    On first run it will ask you to create Instance name and to create login and password to access.


    Add restic repository


    3.png


    Click 1. Add Repo


    In Repository URI: paste /userdata/srv/TOdisk/WhereToStoreBackups

    This is form example from above post

    In your configuration you can Browse file system by typing /userdata/srv/ press right key on keyboard (->) it will expand your filesystem

    4.png

    In Password: Secret

    from example above


    More information about Backrest configuration

    Getting Started
    This guide will walk you through the basic steps to setup a new Backrest instance.
    garethgeorge.github.io


    Backrest Github page: https://github.com/garethgeorge/backrest

Participate now!

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