Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script error: invalid file name #62

Open
ilium007 opened this issue Nov 16, 2024 · 4 comments
Open

script error: invalid file name #62

ilium007 opened this issue Nov 16, 2024 · 4 comments

Comments

@ilium007
Copy link

ilium007 commented Nov 16, 2024

Every time I run now I get script error: invalid file name

It was working previously.

It DOES run on a hAP AC^3 but FAILS on a RB951G-2HnD - both running RoS 7.16.1

@ilium007
Copy link
Author

image

@ilium007
Copy link
Author

ilium007 commented Nov 16, 2024

I think the issue is in here:

:set mailAttachments [$buGlobalFuncCreateBackups backupName=$backupNameAfterUpd backupPassword=$backupPassword sensitiveDataInConfig=$sensitiveDataInConfig];

Within the buGlobalFuncCreateBackups function.

@ilium007
Copy link
Author

I added a :log line in the buGlobalFuncCreateBackups function because I thought the filenames were not being populated correctly but they look fine.

:log info "$backupName.backup $backupName.rsc"

v7.16.1_stable_2024-11-16-19-49-47.backup v7.16.1_stable_2024-11-16-19-49-47.rsc

@ilium007
Copy link
Author

This is the offending line. Only an issue this Mikrotik router, my other one works fine.

[admin@router01] > /system backup save dont-encrypt=yes name="backup" 
Saving system configuration
Failed to save system configuration backup
invalid file name
[admin@router01] >

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant