This commit is contained in:
Matheus Albino
2024-05-04 07:33:12 -03:00
parent bec0430ae6
commit bd9c5cfc4e
6 changed files with 37 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
#!/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 &