I tried to execute the following script to get a backup and .rsc file (with name + date + time) but it gave me errors:
:log info "STARTING BACKUP"
:global backupfile ([/system identity get name] . "-" . [/system clock get date] . "-" . [/system clock get time])
/system backup save name=$backupfile
:log info "DELAY 3S"
:log info "GENERATING RSC"
:global rsc ([/system identity get name] . "-" . [/system clock get date] . "-" . [/system clock get time])
:log info "BACKUP FINISHED"
It gives me:
#[in backup section]
Saving system configuration
Failed to save system configuration backup
action failed (6)
#[in rsc section]
file operation error
I don't know, may be system doesn't accept some special character.
I was not able to copy RB-16:42:00.rsc to my local computer. I suspect it could be the colons in the name.
How do I can change the colon to dash, for example, via script?
Is there a solution to these errors?