Thanks as I fixed that path in that script it was not updated.
I wouldn’t think of things are mirrored. I can give a use case example if that helps.
/gmedia is my mount for everything.
Underneath that it is compared of a local disk “/data/local” and my Google Drive via rclone “/GD”. With mergerfs and my specific setup, writes always go to /data/local first.
So if I copy a file, it appears in /gmedia and is actually written underneath to /data/local:
[felix@gemini ~]$ ls /gmedia
mounted Movies Radarr_Movies torrents TV TV_Ended
[felix@gemini ~]$ cp /etc/hosts /gmedia
[felix@gemini ~]$ ls
bin logs scripts
[felix@gemini ~]$ ls -al /data/local
drwxrwxr-x. 5 felix felix 86 Feb 13 12:41 .
drwxrwxr-x. 10 felix felix 151 Feb 13 10:08 ..
-rw-r--r--. 1 felix felix 117 Feb 13 12:41 hosts
drwxrwxr-x. 3 felix felix 42 Feb 12 08:51 Radarr_Movies
drwx------. 3 root root 26 Feb 13 10:00 torrents
drwxrwxr-x. 14 felix felix 4096 Feb 13 08:26 TV
My upload script than takes anything (excluding my torrent folder) and moves that to my GD so in that an example, it would take /data/local/hosts and move that to GD:hosts
While that happens, /gmedia thinks nothing has changed as it’s always been in /gmedia/hosts
I do my moves at night as in the insanely rare case something accesses a file after it was moved, there is a 1 minute delay possible via Google drive polling that a file would briefly ‘disappear’, but I’ve never ran into that issue.
So my if there was a TV show, it would appear first on /data/local/TV/Someshow/Episode1.mkv until was moved to /GD/TV/Someshow/Episode1.mkv and always look like:
/gmedia/TV/Someshow/Episode1.mkv regardless if it’s local or remote. I’ll see if I can spend some time and give a few examples for folks as I think that is a great question to ask.