Here is some information regarding best habits and practices when using PCloud and Cryptomator together.
It’s possible it might help you avoid this problem happening again.
Yes, it is generally safe to shut down or restart a Mac while a Cryptomator vault is unlocked. However, I recommend locking your Cryptomator vaults before shutting down or restarting macOS, especially when the vault is stored on a mounted pCloud drive.
There are two separate concerns: protecting your encrypted data and preventing file corruption.
What happens if you shut down your Mac with a vault open?
When you initiate a normal macOS shutdown or restart:
-
macOS asks running applications to quit.
-
Cryptomator normally has an opportunity to close its virtual drive and release resources.
-
macOS closes the remaining applications and shuts down.
The important distinction is that having a Cryptomator vault unlocked does not itself cause corruption. The greater risk occurs when an application is actively writing data to the vault during shutdown.
For example, if you’re editing a document stored inside your Cryptomator vault and shut down your Mac before the file has finished saving, the document could become incomplete or corrupted.
Special considerations when using pCloud Drive
When using Cryptomator with pCloud Drive mounted as a cloud drive on macOS, there are two layers involved:
-
pCloud Drive: Provides access to files stored remotely in pCloud without requiring you to synchronize the entire drive to your Mac.
-
Cryptomator: Unlocks your encrypted vault and presents its contents as a separate virtual drive.
Even though pCloud Drive is mounted rather than synchronized to a local folder, it may temporarily cache data on your Mac before uploading it to the cloud.
Consequently, when you save a file inside your Cryptomator vault, the operation may involve Cryptomator encrypting the data and pCloud subsequently transferring it to remote storage.
Locking your Cryptomator vault does not necessarily mean pCloud has finished uploading all pending data.
Recommended shutdown procedure for macOS
-
Finish working with your files. Make sure no applications are actively saving documents or copying files into the Cryptomator vault.
-
Close applications accessing the vault. This includes Finder windows or applications with files open inside the vault.
-
Lock the vault in Cryptomator. Open Cryptomator and click Lock for each unlocked vault.
-
Allow pCloud to finish pending operations. Check the pCloud application for any activity or pending uploads.
-
Shut down or restart your Mac normally.
You should lock the Cryptomator vault before disconnecting or unmounting the underlying pCloud Drive.
What if you forget to lock the vault?
If you occasionally shut down your Mac without manually locking the vault, it generally should not cause problems.
Cryptomator is designed to work with mounted virtual drives, and a normal macOS shutdown typically allows applications to terminate gracefully.
However, there is a greater risk of data corruption if:
-
Your Mac loses power unexpectedly.
-
Your internet connection drops during a file operation.
-
pCloud Drive disconnects while Cryptomator is writing data.
-
macOS is forced to shut down while files are being saved.
Bottom line
You do not absolutely have to lock Cryptomator before shutting down your Mac, but doing so is the safer practice.
Because your encrypted vault is stored on a mounted pCloud cloud drive, I particularly recommend locking Cryptomator before shutting down, restarting, or disconnecting pCloud Drive.
This ensures Cryptomator has finished its own file operations and released the vault before macOS terminates the underlying cloud-drive connection.
One final distinction: locking Cryptomator confirms that its virtual drive has been closed, but it does not guarantee that pCloud has completed transferring every encrypted file to its servers.