- 1 year ago
How can I use a volume name instead of a drive letter with rclone on windows?
To use a volume name instead of a drive letter with rclone on Windows, you can specify the UNC path to the volume in the rclone command. Here's an example:
sqlrclone copy C:\local\folder "\\?\Volume{01234567-89ab-cdef-0123-456789abcdef}\remote\folder"
In this example, we're using the copy
command to copy a folder from a local drive to a remote volume. We specify the source path as C:\local\folder
, and the destination path as \\?\Volume{01234567-89ab-cdef-0123-456789abcdef}\remote\folder
.
The \\?\
prefix tells Windows to bypass some of the path length limitations and allow longer paths, including those that use the volume name instead of a drive letter. The volume name is enclosed in curly braces and is followed by the path to the remote folder.
Note that you'll need to replace the volume name and the path to the remote folder with the actual values for your system. You can find the volume name of a drive by running the mountvol
command in a command prompt.