Closed amgxv closed 5 years ago
To implement
A function in utils.sh
which will receive the following parameters:
--export-scripts
--export-sys-conf
--export-global-conf
By default, will make a backup from the MikroTik device, but with the previous optional parameters, someone can export the rest of things if desired.
The names of the files in the MikroTik device must contain the date (use date "+%Y%m%d-%H%m"
on the function to generate a date-time string). But the files in the computer which runs mdbackup
must store the files in a folder named mikrotik-${IP}
and the names of the files without the date-time string.
Mikrotik backups via ssh.
Access to the router (ssh)
Commands to be executed
ssh admin@router /system backup save name="<backup_name>"
scp admin@router:"<backup_name>" <local_dir>
Other commands that can be useful
/system script export file=scripts
/system export file=system
/export file=router
It would be nice to :