Advertisement
Guest User

rclone mount SFTP via local socks proxy

a guest
Jan 28th, 2025
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.71 KB | Source Code | 0 0
  1. #! /bin/sh
  2.  
  3. # Mount ultra over sftp using socks proxy to route all traffic through the VPN for SFTP.
  4. # Uses the socks proxy defined in the docker-compose
  5. # Remove "--sftp-socks-proxy 127.0.0.1:1080" part if you don't want to use VPN for mounting ultra.
  6. rclone mount \
  7.     --sftp-socks-proxy 127.0.0.1:1080 \
  8.     ultra: /home/andyl/mounts/ultra2 \
  9.     --vfs-cache-mode full \
  10.     --vfs-cache-max-size 2G \
  11.     --vfs-cache-max-age 24h \
  12.     --vfs-read-ahead 1G \
  13.     --buffer-size 32M \
  14.     --poll-interval 30s \
  15.     --dir-cache-time 10s \
  16.     --timeout 10m \
  17.     --retries 5 \
  18.     --low-level-retries 10 \
  19.     --allow-other \
  20.     --log-level INFO \
  21.     --log-file /tmp/rclone-ultra-mount.log \
  22.     --daemon
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement