Cache/expire how to?

I’ve tried to send cache/expire command but i cannot.
Now i explain my situation.
I’m using:
rclone v1.40

  • os/arch: linux/amd64
  • go version: go1.10

Rclone->cache->crypt

I don’t well undertand how to use remote=

Here is what i tried:
rclone rc cache/expire remote=cache:/
2018/04/16 11:16:26 Failed to rc: connection failed: Post http://localhost:5572/cache/expire: dial tcp [::1]:5572: connect: connection refused

I also tried using crypt:
rclone rc cache/expire remote=gcache:crypt/
2018/04/16 11:20:47 Failed to rc: connection failed: Post http://localhost:5572/cache/expire: dial tcp [::1]:5572: connect: connection refused

But nothing changed.
What am i missing?

Try rclone rc cache/expire remote="filepath/on/the/mount

So if you want to expire cache:/Movies it’s rclone rc cache/expire remote="Movies"

It does not seems to work.

i gave this just to see if works:
rclone lsd gcrypt:/crypt
-1 2017-01-28 15:40:30 -1 Movies

Then should be:
rclone rc cache/expire remote=“crypt/Movies”
2018/04/16 13:53:28 Failed to rc: connection failed: Post http://localhost:5572/cache/expire: dial tcp 127.0.0.1:5572: connect: connection refused

I also tried:
rclone rc cache/expire remote="/Movies"
2018/04/16 13:55:32 Failed to rc: connection failed: Post http://localhost:5572/cache/expire: dial tcp 127.0.0.1:5572: connect: connection refused

or

rclone rc cache/expire remote=“Movies”
2018/04/16 13:55:37 Failed to rc: connection failed: Post http://localhost:5572/cache/expire: dial tcp 127.0.0.1:5572: connect: connection refused

Are you running with the --rc flag to start up the remote control?

That was it.

Just another question if i have folder Movies and make cacha/expire on it, i will have new folder in it, but it will not refresh also files in subdir? Or yes?

I mean if i add a file in an existing folder Movies/Film shall i expire Movies/Film or Movies to make rclone see it?

I just use plex_autoscan to handle that.

It works well with adding shows and movies and expiring what’s needed.

I was looking at it, but i’m using a strange way.
I use radarr or sonarr and put movies in a temp dir, then after some times filebot rename and move files in another dir.
Then after sometime Rclone uploads files.
So it takes some times from radarr/sonarr download and the moment files are on gdrive.
So i’m not sure how to use it.

How do you organize all this?

I just let Sonarr/Radarr manage any renames or anything along those lines. They helps so they can get propers if something gets fixed.

I basically just use a /gmedia mount with a TV and Movies folder. Everything gets dropped into there and I have a 60 minute cache-tmp-upload so it moves stuff up to my GD in 60 minutes.

I was hesitant to put autoscan in, but it really works well with the cache expiration and removes any issues on that.

I use filebot instead of Radarr/sonarr rename because with filebot i can rename using italian names, will sonarr/radarr uses english ones. Or is there a way to use Italian titles?

About upload you simply copy files into cache and then make it sync to gdrive?
Don’t you use rclone copy?

I don’t know about Sonarr and the different names but for the copy, I just let it copy directly into my rclone mount and the cache_tmp_upload and cache-tmp-wait-time handle moving it to my GD automatically. It’s less things to put into the process so I rather have less steps and let rcloen manage itself. For me, that works with my use case.

How did you set cache_tmp_upload and cache-tmp-wait-time?

My options are:

--cache-tmp-upload-path /data/rclone_upload --cache-tmp-wait-time 60m

For me, it if I copy into my mount say /gmedia/TV/Somehow/NewfilehereS02E02.mkv, it behind the scenes copies that into the /data/rclone_upload/encrypteddir/encryptedshow/encryptedfilename

and in 60 minutes, it automatically moves it from my local tmp area to my GD.

Looks like this in the logs:

Apr 18 05:04:21 gemini rclone[2815]: smu5ej34ujbdoip1cm3mlk92q4/3th9ipofcq1jhev36ufvufb1c4/eh9hbrup18ebk8unojd5ds8n5vqadcac2ispjqed8u8mq7e19brg: background upload: started upload
Apr 18 05:05:20 gemini rclone[2815]: smu5ej34ujbdoip1cm3mlk92q4/3th9ipofcq1jhev36ufvufb1c4/eh9hbrup18ebk8unojd5ds8n5vqadcac2ispjqed8u8mq7e19brg: Copied (new)
Apr 18 05:05:20 gemini rclone[2815]: smu5ej34ujbdoip1cm3mlk92q4/3th9ipofcq1jhev36ufvufb1c4/eh9hbrup18ebk8unojd5ds8n5vqadcac2ispjqed8u8mq7e19brg: Deleted
Apr 18 05:05:20 gemini rclone[2815]: smu5ej34ujbdoip1cm3mlk92q4/3th9ipofcq1jhev36ufvufb1c4/eh9hbrup18ebk8unojd5ds8n5vqadcac2ispjqed8u8mq7e19brg: background upload: uploaded entry
Apr 18 05:05:20 gemini rclone[2815]: smu5ej34ujbdoip1cm3mlk92q4/3th9ipofcq1jhev36ufvufb1c4/eh9hbrup18ebk8unojd5ds8n5vqadcac2ispjqed8u8mq7e19brg: finished background upload
1 Like

Tnx, i’ll give a try.

BTW.
where did you get the log? Do you need any setting to have ti?

Apr 18 05:04:21 gemini rclone[2815]: smu5ej34ujbdoip1cm3mlk92q4/3th9ipofcq1jhev36ufvufb1c4/eh9hbrup18ebk8unojd5ds8n5vqadcac2ispjqed8u8mq7e19brg: background upload: started upload
Apr 18 05:05:20 gemini rclone[2815]: smu5ej34ujbdoip1cm3mlk92q4/3th9ipofcq1jhev36ufvufb1c4/eh9hbrup18ebk8unojd5ds8n5vqadcac2ispjqed8u8mq7e19brg: Copied (new)
Apr 18 05:05:20 gemini rclone[2815]: smu5ej34ujbdoip1cm3mlk92q4/3th9ipofcq1jhev36ufvufb1c4/eh9hbrup18ebk8unojd5ds8n5vqadcac2ispjqed8u8mq7e19brg: Deleted
Apr 18 05:05:20 gemini rclone[2815]: smu5ej34ujbdoip1cm3mlk92q4/3th9ipofcq1jhev36ufvufb1c4/eh9hbrup18ebk8unojd5ds8n5vqadcac2ispjqed8u8mq7e19brg: background upload: uploaded entry
Apr 18 05:05:20 gemini rclone[2815]: smu5ej34ujbdoip1cm3mlk92q4/3th9ipofcq1jhev36ufvufb1c4/eh9hbrup18ebk8unojd5ds8n5vqadcac2ispjqed8u8mq7e19brg: finished background upload

Maybe i find out:
-v --log-file /root/logs/rclone.log
is it right?

Yep, that’ll work.

I use --syslog and --log-level INFO as you can change it to DEBUG or something else, but in the end, they both are similar.

1 Like

I’m trying your way, but now i have in my Temp data dir two encrypted files that didn’t goes on gdrive.
As they are encrypted i don’t know which those files are.
How can i force those files to upload?
Tnx

OK, i found out how to do it.

What was the magic? :slight_smile:

I just made a manual rclone copy and then manually delete.
It seems those files already were on gdrive and for some reasons weren’t deleted from cache_temp_folder