2022-03-30 18:03:50 +02:00
Save configuration to fallback partition
========================================
2024-03-06 14:30:18 +01:00
[](https://github.com/eworm-de/routeros-scripts/stargazers)
[](https://github.com/eworm-de/routeros-scripts/network)
[](https://github.com/eworm-de/routeros-scripts/watchers)
2024-07-16 13:45:16 +02:00
[](https://mikrotik.com/download/changelogs/)
2024-03-06 14:30:18 +01:00
[](https://t.me/routeros_scripts)
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick& hosted_button_id=A4ZXBD6YS2W8J)
2023-01-10 14:45:27 +01:00
[⬅️ Go back to main README ](../README.md )
2022-03-30 18:03:50 +02:00
> ℹ ️ **Info**: This script can not be used on its own but requires the base
> installation. See [main README](../README.md) for details.
Description
-----------
This script saves the current configuration to fallback
[partition ](https://wiki.mikrotik.com/wiki/Manual:Partitions ).
2024-05-22 12:03:53 +02:00
It can also copy-over the RouterOS installation when run interactively
or just before a feature update.
2022-03-30 18:03:50 +02:00
For this to work you need a device with sufficient flash storage that is
properly partitioned.
2024-02-02 10:43:15 +01:00
To make you aware of a possible issue a scheduler logging a warning is
added in the backup partition's configuration. You may want to use
[log-forward ](log-forward.md ) to be notified.
2024-05-22 09:26:13 +02:00
> ⚠️ **Warning**: By default only the configuration is saved to backup
> partition. Every now and then you should copy your installation over
2024-05-22 12:03:53 +02:00
> for a recent RouterOS version! See below for options.
2024-02-02 12:01:09 +01:00
2022-03-30 18:03:50 +02:00
Requirements and installation
-----------------------------
Just install the script:
$ScriptInstallUpdate backup-partition;
2024-05-22 12:03:53 +02:00
Configuration
-------------
The configuration goes to `global-config-overlay` , the only parameter is:
* `BackupPartitionCopyBeforeFeatureUpdate` : copy-over the RouterOS
installation when a feature update is pending
> ℹ ️ **Info**: Copy relevant configuration from
> [`global-config`](../global-config.rsc) (the one without `-overlay`) to
> your local `global-config-overlay` and modify it to your specific needs.
2022-03-30 18:03:50 +02:00
Usage and invocation
--------------------
Just run the script:
2022-05-11 09:52:07 +02:00
/system/script/run backup-partition;
2022-03-30 18:03:50 +02:00
2024-05-22 09:26:13 +02:00
When run interactively from terminal it supports to copy-over the RouterOS
installation when versions differ.
2022-03-30 18:03:50 +02:00
Creating a scheduler may be an option:
2022-05-11 09:52:07 +02:00
/system/scheduler/add interval=1w name=backup-partition on-event="/system/script/run backup-partition;" start-time=09:30:00;
2022-03-30 18:03:50 +02:00
See also
--------
* [Upload backup to Mikrotik cloud ](backup-cloud.md )
* [Send backup via e-mail ](backup-email.md )
* [Upload backup to server ](backup-upload.md )
2024-02-02 10:43:15 +01:00
* [Forward log messages via notification ](log-forward.md )
2022-03-30 18:03:50 +02:00
---
2023-01-10 14:45:27 +01:00
[⬅️ Go back to main README ](../README.md )
[⬆️ Go back to top ](#top )