Community discussions

MikroTik App
 
someone2
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sun Jan 07, 2018 9:52 pm

Backup

Sun May 19, 2019 7:05 am

Hello
This error appears after creating backup
echo: backup,critical error creating backup file: could not read all configuration files
1.What is the solution
2. When i want to handle this error in auto backup using " do on-error ", this message is not recognized as error
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Backup

Mon May 20, 2019 12:33 pm

Is your issue still persisting?
 
User avatar
eworm
Forum Guru
Forum Guru
Posts: 1071
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: Backup

Mon May 20, 2019 2:57 pm

Probably regenerating your ssh host keys helps:
/ ip ssh regenerate-host-key
 
someone2
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sun Jan 07, 2018 9:52 pm

Re: Backup

Mon May 20, 2019 8:33 pm

The problem was solved with regenerating ssh host key.
But how can i catch this error in auto backup script using do {} error {} ? I tried this but that error messege is not recognized as error.
 
User avatar
eworm
Forum Guru
Forum Guru
Posts: 1071
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: Backup

Mon May 20, 2019 10:30 pm

The problem was solved with regenerating ssh host key.
But how can i catch this error in auto backup script using do {} error {} ? I tried this but that error messege is not recognized as error.
I think you can not. Do it manually if it happens. The backup file is fully functional except the host key(s), so do not worry.

IMHO this is something the system should detect and correct on its own. It happens again and again, with lots of examples here in forum. Mikrotik?
 
someone2
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sun Jan 07, 2018 9:52 pm

Re: Backup

Tue May 21, 2019 6:11 am

Thanks alot
Other errors are recognized by do {} error{} and it is strang for me that this error is not. If it is not recognized as error , how can we realize that regeneration is needed after making auto backup file.
If it is not any way, is backup file trustable
I think that error message means that backup file was made without only ssh config. Am i right?

Who is online

Users browsing this forum: DanMos79, jericho, raphaps, wfburton and 101 guests