Community discussions

MikroTik App
 
haukete
just joined
Topic Author
Posts: 3
Joined: Thu Dec 29, 2022 3:02 pm

Checksum for files

Sun Dec 17, 2023 11:45 am

Hey!

Is there any feature to take checksum of files?
Like md5, sha256sum...

I recently had two times the problem of system backups that run corrupted while file transfer.
It was first noticeable on restore, which I find to late.

So if someone knows a way, to check backup files before and after transfer, a note would be highly appreciated.

Thanks in advance,
Hauke
 
pe1chl
Forum Guru
Forum Guru
Posts: 10568
Joined: Mon Jun 08, 2015 12:09 pm

Re: Checksum for files

Sun Dec 17, 2023 12:55 pm

Probably your backups were corrupted due to using FTP and having it in ASCII instead of BINARY mode.
You need to watch for that, and/or do it using scripting so that cannot happen.
 
haukete
just joined
Topic Author
Posts: 3
Joined: Thu Dec 29, 2022 3:02 pm

Re: Checksum for files

Mon Dec 18, 2023 9:14 am

Thanks for your reply.

I used ssh/sftp to transfer the files. I understood that binary is the default mode in fetch command in RoS.
For future I will explicitly put the switch for it.

Meanwhile, I encrypt the files with the password and check on a CHR if decryption is possible.
If yes, I assume content should be fine.