Dump and load btmp, utmp and wtmp accounting files. More information: https://manned.org/utmpdump.
/var/log/wtmp
stdout
utmpdump /var/log/wtmp
utmpdump -r dumpfile > /var/log/wtmp