Backup Config
-
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 : ?yes simple questions
after your answer I will fill the form with the right information
Thanks
-
@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 manuallysteps to run backup
1. Setup add a backup handler
Operatons >> Handlers
click onAdd
- Enter the details as follows
2. Run manual Backup
- Add backup locations in
Settings >> Backup and Restore >> Backup Locations
- Click on
Settings >> Backup and Restore >> Backup
- Click on refresh button in
Settings >> Backup and Restore
3. Setup automatic backup
- Add a schedule to run a backup in
Operations >> Schedules
- handler parameter
backup_yaml
as follows - automatic backup scheduled for every 6 hours once
Please let me know if the steps are not clear.
-
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
-
@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.
-
@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.
-
..... 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