utmpdump

Dump and load btmp, utmp and wtmp accounting files. More information: https://manned.org/utmpdump.

utmpdump /var/log/wtmp

utmpdump -r dumpfile > /var/log/wtmp