Ros3 Backup Store
From CTWUG Wiki
Contents
Info
This script will create a backup of your RB's configuration and store it on the RB under "Files". I find it very useful to have at least some sort of backup locally on my rb for the times that all goes wrong, something is better than nothing. This script will work as is, just navigate to System/Scripts and run it. Note the comments in the script that is written to the Log file state "Weekly Backup beginning now", this particular script is used on a weekly basis with a scheduler.
Setup
For this script to function correctly, there are a few things that will need to be setup.
- Routerboard Identity Setup rb_Identity
- Routerboard Time Setup, either manually rb_time_manual or via NTP rb_ntp_setup
Enhancements
- Check out **** to create a schedule, that will run the script at a predefined period.
Script
:log info "Weekly Backup beginning now" /system backup save name=([/system identity get name] . "-" . [:pick [/system clock get date] 4 6] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 7 11]); :log info "Weekly Backup done"