Force Hash Check and 2 snapshot configs for same folder?

Hello.
I’m looking into Kopia as a potential replacement for Duplicati and I’m enjoying using it so far.

One issue I’ve got though is that I have some files in a folder which need to be re-hashed on every backup as the modified date doesn’t change on them.

I’ve found that the --force-hash=100 flag can be used, but I’m using the UI so I don’t really know how I can do this? If I need to do these backups from the CLI, will the snapshots still show in the UI so the schedules can be changed and restores done easily?

Also, as the files are in a folder which is also backed up, I have tried adding the folder as a snapshot source twice, but I can’t do it. I was thinking that I add the folder once, and include all the files in a ‘normal’ modified scan. And then add the folder a second time and ignore all the files other than the ones which need hashing everytime (for speed purposes) but I can’t do this as it just re uses the config already there for the folder. Is there a way around this?

Thanks.

Not today but in principle we could have a policy setting for always rehashing folders or files. PRs are welcome.

Hello again.

I wondered if this is on the horizon for adding to the GUI?

I would like to use the GUI and is there a way now of doing a force hash check in the GUI or even adding/modified command line in GUI for a policy to do it?

Thanks for continued development of Kopia.

Thanks.

I think I can actually do this now.

With the addition of being able to run scripts after snapshots, I’ve tested and I can create a policy for a folder in the GUI. I can then ignore the files that always need to be hashed in the policy, and then put in the “After Snapshots actions” the CLI to create a snapshot to always hash the files I want.

This means every time the snapshot is ran in the GUI for the main folder, once it is done it will snapshot the other files too.

The other advantage is that these snapshots show up in the GUI for restoring or browsing if needed, so it’s easy for me to keep track of :slight_smile:

I will keep testing this and see how it goes.

Thanks

Very creative way of using “Snapshots’ actions”! Clever.

Thanks.

Still doesn’t work quite how I like due to I can’t create different policies for one folder.

Also, can’t define a single file in the snapshot action as this doesn’t backup correctly or thats how it seems.

Still testing at the moment though :slight_smile: