Find latest version of a file
I'm trying to recover the latest version of a file: mylist.txt
I'm using rsnapshot for backups and I realized I lost this file for some reason, perhaps a month or two ago. I'd like to recover the latest version of the file but there are so many directories it's a bit daunting... I'm guessing the find command is the right tool, but unsure of how to use it with the right syntax to get the file with the latest [last modified?] date (or largest size?).
Maybe something like: find . -type f -name "myfile.txt" but not sure how to use it to get the latest one (or the largest one).
I read the man page for find and tried a few things to no avail... and googled but only found folks searching for latest files, not the latest version of a specific file... This box is running ubuntu 20.04.
Thank you all in advance! 🙏
|