Folder renaming on pc

What is the problem you are having with rclone?

I got a question that i am hoping to get help with through this forum.
I have a google drive, and i have a lot of files stored on there. Now i want to store them "local" to as a kind of backup.
On the google drive there is about 120,000+ folders that can change name or can get new files added in them. I want that to be happening local to (As soon as i run the rclone command). Let me give better example:
G-Drive folder:
A New Begin 01-04 (ic)
-- A New Begin - 01 - Part 1.pdf
-- A New Begin - 01 - Part 2.pdf
-- A New Begin - 01 - Part 3.pdf
Renamed G-Drive folder:
A New Begin 01-04 (c)
-- A New Begin - 01 - Part 1.pdf
-- A New Begin - 01 - Part 2.pdf
-- A New Begin - 01 - Part 3.pdf
-- A New Begin - 01 - Part 4.pdf
Local Folder: A New Begin 01-04 (ic)
-- A New Begin - 01 - Part 1.pdf
-- A New Begin - 01 - Part 2.pdf
-- A New Begin - 01 - Part 3.pdf
What i want for Local Folder:
A New Begin 01-04 (c)
-- A New Begin - 01 - Part 1.pdf
-- A New Begin - 01 - Part 2.pdf
-- A New Begin - 01 - Part 3.pdf
-- A New Begin - 01 - Part 4.pdf

As you can "see" above here, the updated folder received the last missing pdf (part 4) and got renamed at the end (from (ic) to (c))
Is there a way that rclone can do that on the local drive to? Without downloading the whole folder again? As some folders can be a lot of GB

What is your rclone version (output from rclone version)

rclone v1.53.3

  • os/arch: windows/amd64
  • go version: go1.15.5

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows 10, 64 bit

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)

(This is what i came up with through google so far)
rclone sync F:\Digistrip Digistrip -P -v --exclude "*.jpg"

The rclone config contents with secrets removed.

[Digistrip1]
type = drive
client_id = ***
client_secret = ***
scope = drive
token = ***
team_drive = ***

A log from the command with the -vv flag

I didnt run the command yet as i am to scared that it will screw up a lot of things.
Hence i come here asking if people can confirm i did it correct and it is possible what i try to achieve. Maybe adjust command if needed.

Nothing yet

** I hope i gave enough information, if more is needed please ask! I did my best to explain it in as good english as i can... Thanks in advance!

hello and welcome to the forum,

this might work
https://rclone.org/docs/#track-renames
https://rclone.org/docs/#track-renames-strategy-hash-modtime-leaf-size

rclone sync can delete files, must test with
https://rclone.org/docs/#n-dry-run

that command does not look valid, as is, both the source and dest are local, need to be careful with sync

  • a remote needs a : in the path name
  • the remote named is Digistrip1, not Digistrip

perhaps this is what you intended.
rclone sync F:\Digistrip Digistrip1: -P -v --exclude "*.jpg"

At first thank you for the fast reply!
See that's why i asked here before i go play with it!
I adjusted the command and now letting it run a "debug" run.
rclone sync F:\Digistrip Digistrip1: -P -n --track-renames-strategy hash -vv --exclude "*.jpg" --log-file=mylogfile.txt
Now waiting it to finish and see what the result is
Thank you again!

well, a good question is half the answer.

1 Like

Quote of the day from me :slight_smile:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.