Thanks for the Union refactor, there are some great new features there.
I have been using it for fairly simple purposes:
[union]
type = union
upstreams = /data/upload encgoogle::ro
I then mount it to a folder on the local drive via the official docker container. The command equates to the following:
rclone:
cap_add:
- SYS_ADMIN
container_name: rclone
volumes:
- './apps/rclone/config:/config/rclone'
- '${ROOT}/mount:/data/mount:shared'
- '${ROOT}/upload:/data/upload:shared'
logging:
driver: json-file
options:
max-size: 5m
security_opt:
- apparmor:unconfined
devices:
- /dev/fuse
restart: always
image: rclone/rclone
command: 'mount --allow-other --use-mmap --buffer-size 0M union: /data/mount --allow-non-empty'
I then have another container that accesses the same destinations:
- '${ROOT}/mount:/data/mount:shared'
- '${ROOT}/upload:/data/upload:shared'
When moving something from within that container from above the mount folder into mount
it always seems to do a copy instead of a move. I am switching from UnionFS where the same setup seemed to work ok.
Does RClone support moving instead of copy? Is it related to hardlinks and is that supported? I am getting the hardlink info from the threads here on the forum during the inception of the union part of RClone which suggests it does and from @Animosity022 's posts, seems relevant.
And is the config upstreams = /data/upload encgoogle::ro
the equivalent to the old union method? I am trying to achieve all changes in /data/mount to take place in /data/upload and not to touch encgoogle: