What is the problem you are having with rclone?
I'm trying to create or copy a symlink to a google drive mounted via rclone. I was okay with copy pasting some files before, but now it proves necessary - I can't create a python virtual environment (python -m venv venv) without symlinks support (--copies options doesn't work).
Run the command 'rclone version' and share the full output of the command.
rclone v1.65.0
- os/version: arch rolling (64 bit)
- os/kernel: 6.6.3-arch1-1 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.4
- go/linking: dynamic
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
google drive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone mount gdrive-encrypted: /mnt/gdrive-rclone-encrypted \
--umask 077 \
--rc --rc-addr :<REDACTED> --rc-user <REDACTED> --rc-pass <REDACTED> \
--cache-dir /home/user/.cache/rclone/gdrive-encrypted \
--vfs-cache-mode full \
--vfs-cache-poll-interval 5m \
--vfs-cache-max-age 8760h \
--vfs-cache-max-size 10G \
--attr-timeout 8700h \
--dir-cache-time 8760h \
--poll-interval 10s \
--multi-thread-streams 0 \
--links
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[gdrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
root_folder_id = XXX
team_drive =
[gdrive-encrypted]
type = crypt
remote = gdrive:crypt
password = XXX
password2 = XXX
Thank you for creating the redacted option
A log from the command that you were trying to run
Trying to create a python venv:
python -m venv venv
Error: [Errno 5] Input/output error: 'lib'
Trying to copy a symlink to google drive:
cp -a link /mnt/gdrive-rclone-encrypted/test
cp: cannot create symbolic link 'scripts/test': Input/output error
Links are not supported on rclone mounts.
There is many years old issue open:
opened 11:47AM - 14 Feb 19 UTC
enhancement
VFS / mount
help wanted
#### What is the problem you are having with rclone?
I uploaded some symlinks… with "rclone copy" and parameter "--links" to my gdrive remote.
As expected, files with the extension "rclonelink" are generated.
I now expect that the rclonelink files are not visible via rclone mount. Instead they should be translated to symlinks. But actually it is not the case. Only plain rclonelink files are visible.
Additionally I'm also not able to create symlink. Instead I get I/O error (see below).
#### What is your rclone version (output from `rclone version`)
rclone v1.46-DEV (latest commit as of today)
#### Which OS you are using and how many bits (eg Windows 7, 64 bit)
Linux x64
#### Which cloud storage system are you using? (eg Google Drive)
Google Drive
#### The command you were trying to run (eg `rclone copy /tmp remote:tmp`)
rclone --config /config/rclone.conf mount gdrive_decrypted:/ /mnt --allow-other --allow-non-empty --uid=1000 --gid=1000 --umask=007 --links --fast-list --rc--verbose
#### A log from the command with the `-vv` flag (eg output from `rclone -vv copy /tmp remote:tmp`)
ln -s /tmp/testfile testlink
ln: testlink: I/O error
Still not implemented.
Thank you for confirming. That's a shame - it would be really useful.
Agree... I will read this issue thread later trying to figure out what is stopping it from happening
There were some attempts to make it happen, e.g.:
rclone:master ← dinoboy197:traack_symlinks
opened 06:51AM - 19 Jan 21 UTC
<!--
Thank you very much for contributing code or documentation to rclone! Plea… se
fill out the following questions to make it easier for us to review your
changes.
You do not need to check all the boxes below all at once, feel free to take
your time and add more commits. If you're done and ready for review, please
check the last box.
-->
#### What is the purpose of this change?
Adds symbolic link support for `mount` command.
#### Was the change discussed in an issue or in the forum before?
<!--
Link issues and relevant forum posts here.
-->
#### Checklist
- [ ] I have read the [contribution guidelines](https://github.com/rclone/rclone/blob/master/CONTRIBUTING.md#submitting-a-pull-request).
- [ ] I have added tests for all changes in this PR if appropriate.
- [ ] I have added documentation for the changes if appropriate.
- [ ] All commit messages are in [house style](https://github.com/rclone/rclone/blob/master/CONTRIBUTING.md#commit-messages).
- [ ] I'm done, this Pull Request is ready for review :-)
But closed and abandoned - quick scan tells me that it is actually tricky thing.
1 Like
system
(system)
Closed
December 5, 2023, 7:03pm
5
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.