Any way to filter directories by directory age? For example, I want to list directories older than 30 days

rclone --min-age 30d lsd gsuite:/

This command seems to list all the directories. I suspect it’s only filtering the files, which is moot since I use lsd.

My eventual goal is to move all directories older than 30 days into an “Archive” folder, all on Google. I don’t care about how old the files are, I just want to look at the age of the dir. Any help achieving that goal is appreciated.

This command seems to list all the directories. I suspect it’s only filtering the files, which is moot since I use lsd.

Yes you are right - rclone only filters on file ages.

Rclone makes some attempt to return directory ages but it isn’t that reliable among cloud storage providers…

AllanM:

My eventual goal is to move all directories older than 30 days into an “Archive” folder, all on Google. I don’t care about how old the files are, I just want to look at the age of the dir. Any help achieving that goal is appreciated.

I’d probably do this by naming the directories YYYY_MM_DD then use a bit of shell script to find when you have more than 30. rclone lsf is ideal for this kind of scripting…