Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not sure, but seems to be an expensive operation on snapshot based architectures - have to search through all snapshots.


If you know the path, it would be

    $ restic mount --repo /mnt/backupdrive/myrepo /mnt/backedup
    $ echo /mnt/backedup/snapshots/*/path/to/file
And it would print which snapshots it is contained in.

If you don't know the path, I don't know how long `find -type f` takes so you might be right about that being inefficient. It is certainly not a use-case that I think restic ever had in mind.

I also don't know of "backup" software to solve this, it seems a bit out of scope for most of them (they are meant to have a backup copy of your disk, not be a file manager with history). You might have more luck with tools like rsync (or Toucan, from the good old days where I used Windows and Portable Apps), those can certainly create only new files and never delete deleted files, but then you typically don't get encryption and deduplication.


Thanks, I’ve also thought that something built on rclone or rsync might be more suitable.

I haven’t yet moved to restic, so it might be that find -f is good enough for me.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: