• Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login
  • Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login

Backup Config

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 562 Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    JeeLet
    last edited by JeeLet 4 May 2022, 17:38 5 Apr 2022, 12:07

    Hello

    in image how to set up the backup and restore of Mycontroller.

    yes in empty fields for a beginner it is confusing.

    a list of letter, A to F to tell us and explained what to fill.

    Real Example

    A - Name : ?
    B - Location : ?
    C - Prefix : ?
    D - Storage Export Type , which choice YAML or JSON ?
    E - Target Location : ?
    F - Handler : ?

    texte du lien

    yes simple questions 😞

    after your answer I will fill the form with the right information 🙂

    Thanks

    J 1 Reply Last reply 6 Apr 2022, 01:52 Reply Quote 0
    • J Offline
      jkandasa @JeeLet
      last edited by 6 Apr 2022, 01:52

      @jeelet I yet to write a document for backup and restore
      We can backup the storage database in two formats. 1. JSON, 2. YAML
      NOTE: Metric database(influx db) backup not covered by MyController v2, you have to do it manually

      steps to run backup

      1. Setup add a backup handler

      • Operatons >> Handlers click on Add
      • Enter the details as follows
      • 2c93e754-e7da-4bf2-892c-eefe070c5b3d-image.png

      2. Run manual Backup

      • Add backup locations in Settings >> Backup and Restore >> Backup Locations
      • c5bc1a69-96d9-4f0b-8b9b-e797bf59f78c-image.png
      • Click on Settings >> Backup and Restore >> Backup
      • fb5f6256-f2ec-49f9-91c5-c952d289c16c-image.png
      • Click on refresh button in Settings >> Backup and Restore
      • 53f08cdc-91e9-48c8-9c85-aae576d3be97-image.png

      3. Setup automatic backup

      • Add a schedule to run a backup in Operations >> Schedules
      • bd3d917a-73dd-404d-a911-0b5627690f2f-image.png
      • handler parameter backup_yaml as follows
      • d106d3c7-384a-49e2-b14f-3db75828fb02-image.png
      • automatic backup scheduled for every 6 hours once

      Please let me know if the steps are not clear.

      1 Reply Last reply Reply Quote 0
      • J Offline
        JeeLet
        last edited by JeeLet 8 Oct 2022, 21:04 10 Aug 2022, 15:31

        the link for information on cron cron
        (it's easy once you understand it)

        two questions about backup

        1 : the cycles of backup program overwrites the old backups ? or it is incremented ?

        2 : for the restoration, example.
        ---- installs new-----
        - a new blank installation of myC

        • copy and create the directory /opt/backups/ with the backup in it, then launch : Settings-->Backup Restore
        S J 2 Replies Last reply 11 Aug 2022, 08:27 Reply Quote 0
        • S Offline
          skywatch @JeeLet
          last edited by 11 Aug 2022, 08:27

          @JeeLet said in Backup Config:

          1 : the cycles of backup program overwrites the old backups ? or it is incremented ?

          Each backup is a full snapshot of MC. Each is written individually. You can choose how many backups you want to keep to save disk space. In the example above it is 8 backups shown in the "Retention count" option.

          So if you backup daily you will always have the last 8 days snapshots available. If you backup hourly you will have the last 8 hours available.

          Hope that is clear for you!

          2 : for the restoration, example.
          ---- installs new-----
          - a new blank installation of myC

          • copy and create the directory /opt/backups/ with the backup in it, then launch : Settings-->Backup Restore

          This restores the entire MC snapshot with all the settings and data preserved.

          1 Reply Last reply Reply Quote 1
          • J Offline
            jkandasa @JeeLet
            last edited by 11 Aug 2022, 09:09

            @JeeLet , what @skywatch is explained exactly.
            In addition to that,

            • MC v2 never take backup of your metrics database, here it is influxdb
            • Retention count - controls only that particular backup schedule, example: if you run a backup manually, it will not be included in the count and it never deleted. also it will not count backup from another schedule. in MC v2 it is possible to schedule multiple backups. I have like weekly and hourly.
            1 Reply Last reply Reply Quote 0
            • J Offline
              JeeLet
              last edited by 14 Aug 2022, 09:56

              ..... back on my computer 🙂

              hello skywatch jkandasa

              thank you for this clear explanation guys

              . the backup of infuxdb

              the one recopy with the tree command

              @odroidc2:/var/lib$ tree influxdb
              influxdb
              ├── data
              │   ├── _internal [error opening dir]
              │   └── mycontroller [error opening dir]
              ├── influxd.pid
              ├── meta
              │   └── meta.db
              └── wal [error opening dir]
              
              @odroidc2:/var/lib/influxdb/data$ sudo tree mycontroller
              mycontroller
              ├── autogen
              │   └── 2
              │       ├── 000000001-000000001.tsm
              │       └── fields.idx
              └── _series
                  ├── 00
                  │   └── 0000
                  ├── 01
                  │   └── 0000
                  ├── 02
                  │   └── 0000
                  ├── 03
                  │   └── 0000
                  ├── 04
                  │   └── 0000
                  ├── 05
                  │   └── 0000
                  ├── 06
                  │   └── 0000
                  └── 07
                      └── 0000
              
              

              the directory /var/lib/influxdb/data/mycontroller/
              and thus to save 😉

              1 Reply Last reply Reply Quote 1
              • First post
                Last post

              0

              Online

              586

              Users

              529

              Topics

              3.4k

              Posts
              Copyright © 2015-2025 MyController.org | Contributors | Localization