How to provide a Kopia Repository (from S3) via Hard Drive for fast recovery

Hi all,
I need some advice regarding a user situation:
The user uses Kopia (with ransomware protection enabled) to back up data to my MinIO S3 storage.
Unfortunately, their systems were breached and encrypted. They’re now trying to recover their data, but the slow internet connection makes downloading everything from S3 impractical—it would take several days.
I’d like to expedite their recovery by shipping them a hard drive with files from the Kopia repository. However:
I know that the structure of a Kopia repository differs between cloud-based and other repository types.
Kopia recommends using kopia repository sync-to for such cases but that requires me knowing their password. Is there a way to prepare the hard drive with their repository data without knowing their repository password and without requiring any additional setup or action from their side?

Any guidance or recommendations for handling this would be much appreciated!

I have tried to convert from a S3 repository to a filesystem repository by adjusting the .shards file, but Kopia still complained:
ERROR error connecting to repository: repository not initialized in the provided storage

Maybe the best thing to do in your case is shipping the repository as is and let your client spin up a S3 server pointing to the repository.

You can access local storage via S3 API using the “Swiss knife” of the cloud storage - rclone:

effectively one liner will do all job:

$ rclone serve s3 --auth-key ACCESS_KEY_ID,SECRET_ACCESS_KEY /path/to/local/storage

should be enough for restore.

1 Like

Yes you can Mount the repository files but kopia wont let you connect to this repository probably because of this: https://kopia.discourse.group/t/changing-repository-type/486/3

pon., 25 lis 2024, 16:35 użytkownik kapitainsky via Kopia Forum <notifications@kopia.discoursemail.com> napisał:

yes… this is why you have to serve it as S3… either over Internet from your minio instance or from local disk using rclone.

1 Like

You are right :man_facepalming: i was trying rclone so much yesterday that i give up on it, but this works!

pon., 25 lis 2024, 19:05 użytkownik kapitainsky via Kopia Forum <notifications@kopia.discoursemail.com> napisał: