I have the following problem when trying to make backups using Kopia. All my personal photos are stored in an encrypted folder using encfs, for security reasons. I would like to back up this folder, but not the encrypted files, rather the decrypted ones. That is, after I decrypt and mount them with encfs. However, I do not know why Kopia cannot access the folder with the decrypted files.
One solution would be to keep all photos normally on the hard disk, which would allow me to back up without problems through Kopia, but this would mean a security issue - the source folder would be visible to anyone.
What solution do you propose to back up personal photos while keeping the source folder secure?
Well… afaiks, encFS is rather… ancient and having read read the Wikipwdia article about it, it rather seems that you would be better off to switch to something more modern. I am not quite sure, what the issue with Kopia would be here, but I think, that you will need a session with the encFS driver to be able to access the unencrypted files, while Kopia probably tries to access the files directly - without FUSE that is, and thus only grabs the encrypted ones. The article also notes some vulnerabilities, which would also suggest to move away from encFS…
If I were to choose one, I’d probably go with LUKS.
Ok, I agree that encfs is outdated. I tried your suggestion regarding LUKS. I created a LUKS partition, mounted it. I put some pictures in it. When I try to backup the decrypted LUKS folder, I get an error:
Error: internal server error: can’t get local fs entry: unable to determine entry type: lstat /test: no such file or directory
So, to make myself clear. I have encrypted family photos. I want to backup not the encrypted photo files, but the folder with the decrypted photos. And it seems that kopia doesn’t handle encrypted folders, whether it’s encFS, LUKS, or Cryptomator.
Any encryption you want to use with Kopia needs to somehow provide a POSIX-compliant volume, which presents the unencrypted files. I’d waste no time with any other solution.
Through all the above, I tried to understand how I could make a backup copy of my personal files, in the most secure way.
Now another question would appear, related to the backup mechanism of Kopia. Let’s say that I backup daily, and at some point bad sectors appear on the hard disk, and some files are damaged. Does Kopia have any mechanism to control the copied files, to check if they haven’t been damaged at the source in the meantime?
It is a good practice to run verification periodically. But above all the key is to have proper backup strategy - following the 3-2-1 rule is a good start. Every backup at some stage will get corrupted or destroyed - not if but when is the only question. This is my approach:)
Okay, I understand. Kopia has a mechanism for verifying files in the backup. What happens if some files from the source become corrupted in the meantime? Does Kopia detect changes to the source (corrupted files) and overwrite them over the good files from the existing backup, or what happens in such cases?
No - and I don’t know of any backup software which does that. In the end the data on the source is the master, how can a backup software possibly decide when to automatically overwrite the data on the source with data from the backup? That’s never the call of the backup software to make and no vendor would ship such a system due to the implied consequences.
I am thinking, that you’re over-think the whole setup. And there is no such thing as a 100% certainty, that your data will be safe and secure, but you can minimize the risk, by taking @kapitainsky ‘s comment to heart.