Files
dotfiles/scripts/shell/archived/rclone-windows-mount-dirs.sh
Matheus Albino bd9c5cfc4e Updates
2024-05-04 07:33:12 -03:00

16 lines
691 B
Bash
Executable File

#!/bin/bash
# works but create processes on Windows and files can't be interacted with from WSL
rclone_path=/mnt/e/programs/rclone-v1.66.0-windows-amd64
rclone_path_windows=E:\\programs\\rclone-v1.66.0-windows-amd64
rclone_bin=$rclone_path/rclone.exe
rclone_mount_path=E:\\home\\Documents\\sync
rclone_config_path_symlink=$rclone_path/rclone.conf
cp ~/.config/rclone/rclone.conf $rclone_config_path_symlink
rclone_mount_cmd="$rclone_bin --config $rclone_path_windows\\rclone.conf mount"
$rclone_mount_cmd gdrive-zakdragonbites: $rclone_mount_path\\gdrive-zakdragonbites &
$rclone_mount_cmd --vfs-cache-mode writes nextcloud-pudimxyz-cloud: $rclone_mount_path\\nextcloud-pudimxyz-cloud &