0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【ワンポイント解説】スマホをモバイル暗号化ストレージにする

Last updated at Posted at 2025-12-23

1. はじめに

アドベントカレンダーの隙間をすべて埋めてみたくなったので、軽めの記事も書いてみることにしました。今回のテーマは「rclone crypt」です。

2. 300MBで、5分!

スマホをサキュアサーバにする記事を別に書いてますが、暗号化フォルダを直接扱おうとして四苦八苦していました。SVNサーバの動作確認でリポジトリに280MBほどのデータを放り込んだところ、チェックアウトで5分16秒。単純に遅い。QEMUのCPUエミュレーションではここまで遅くなるのかと。

3. PCにマウントする

そこで、スマホのサーバ上にマウントするのではなくて、暗号化フォルダをPCにマウントしたら速いんじゃね?という元も子もない発想だとどうなるのか、試してみます。スマホアプリ「File Manager Plus」のFTPをrcloneで雑にマウントします。

rclone config
New remote [mobile-ftp]
- type: ftp
- host: 192.168.x.x
- user: anonymous
- port: xxxx
- pass: anonymous@example.com
New remote [mobile-secure]
- type: crypt
- remote: mobile-ftp:/sdcard/.secure
- password: *** ENCRYPTED ***
mkdir ~/srv
rclone mount mobile-secure: ~/srv --vfs-cache-mode writes --daemon

ローカルのリポジトリ扱いでチェックアウトしてみます。

URL
file:///home/ユーザ名/srv/svn/my-first-svn

4. おわりに

チェックアウトの所要時間は2分18秒…なんだこの微妙な数字。劇的に早くなるわけでもないのか。セキュアサーバの構築については、引き続き進めてみます。なお、TermuxのSSHをマウントしたら1分18秒まで短縮されました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?