Skip to main content

Turn a Rental Server into a Cloud Drive

·207 words
icysamon
Author
icysamon
I really love making things by hand and turning my ideas into reality.

Prerequisites
#

  • SFTP-supported rental server
  • Windows 11 PC

Download WinFsp
#

https://winfsp.dev/rel

Download Rclone
#

https://rclone.org/downloads

After installation, check the status.

rclone --version

Setting up the Rclone Config File
#

Enter configuration mode
#

Type:

rclone config

Select New remote by typing n.

Select SSH/SFTP.

Then, configure the basic information such as the server host, password/key, etc.

Find the location of the config file
#

rclone config paths

For reference, here is my config file.

[Drive]
type = sftp
host = example.sakura.ne.jp
user = nekosama
pass = password
use_insecure_cipher = true
shell_type = unix
md5sum_command = md5 -r
sha1sum_command = sha1 -r

Mount the drive
#

Create a .bat file and enter the following content:

rclone mount Drive:/home/user/your_file Z: ^
--cache-dir %LocalAppData%\rcloneLocalAppData ^
--vfs-cache-mode writes ^
--volname "Drive Name" ^
--buffer-size 512M

About Drive:/home/user/your_file
#

  • Drive : The name of the remote created earlier
  • :/home/user/your_file : The file path you want to specify (optional)

cache-dir
#

Specifies the directory that rclone uses for caching. (Optional)

vfs-cache-mode
#

Cache mode (writes is recommended)

Please check here for more details.

volname
#

The name of the drive (Optional)

buffer-size
#

Buffer for speeding up file transfer. (Optional)

Mount
#

Finally, run the .bat file, and the drive will appear.