Giter Club home page Giter Club logo

truenas-conf-backup's Introduction

Truenas-Conf-Backup

This is a small script to backup a configuration of a Truenas server

Features:

  • Save backup of your Truenas config by CLI.
  • Be able to restore it through the GUI
  • Automaticly send you the backup archive when changes are detected

Instructions :

Step 1 :

  • Configure emails through the GUI (System --> Email)

Step 2 :

  • Clone this repository in the folder of your choice

Step 3 :

  • Edit the file saveconf.sh to specify FROM address, and TO address. You can also change the subject and/or the body. Additionally, if you want to keep older backup, you can simple change SAVE="NO" to SAVE="YES" and your backups will be save in /path/to/the/script/backup/send/.

Step 4 :

  • On a shell chmod +x path/to/the/repo/saveconf.sh

Step 5 :

  • Add the job to cron (via the GUI or via CLI) :
    • Command : path/to/the/repo/saveconf.sh
    • Every : you can choose anything you want, every days, every month or even every minutes ! Config backup won't be kept if no changes are detected...

Notes :

You must have a backup/send folder along with saveconf.sh for it to work. If you just clone the repo without changing anything, it should work flawlessly :). Please also note that backup are send unencrypted, this can cause a security issue. I encourage you to encrypt your emails before sending them, see zeyple.

truenas-conf-backup's People

Contributors

spitfireap avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.