Server side "move" not changing ownership?

What is the problem you are having with rclone?

I have bucket 1 and bucket 2. I am trying to server side move some files from bucket 1 to bucket 2, and change the ownership to bucket 2.

I have shared the folder from bucket 1 with bucket 2, and added it to bucket 2's drive.

So I am now trying to move the file from the shared folder, to its final destination, and delete the copy from the shared folder, and from bucket 1.

I used the following command:

rclone copy bucket2:/temp/test/ bucket2:/temp2/test/ --drive-server-side-across-configs=true --transfers=10 --fast-list -v

The file appears in /temp2/test/ and is removed from /temp/test/ and bucket1, but the ownership of the file in bucket2 stays as the bucket1 owner.

If I copy instead, it changes to the bucket 2 owner, but keeps the old files there.

What is your rclone version (output from rclone version)


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

Ubuntu 18

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)

rclone copy bucket2:/temp/test/ bucket2:/temp2/test/ --drive-server-side-across-configs=true --transfers=10 --fast-list -v

Server side move does exactly that, just move the files and doesn't change them.

You could do an rclone copy bucket1 bucket2 then an rclone delete bucket1 --dry-run to remove the files after the copy?

1 Like

Thanks! Any way to update the timestamp of the file when it uploads, so I can accurately delete files that are 1 day old?

Usenet files tend to keep their original datestamp, so almost ALL are flagged as being old.

I think I worked it out.

I used:

rclone delete buket1:/temp/files/ -vv --min-age=24h --drive-use-created-date

1 Like

I found a better way.
Just in the upload script, add the line
find . -exec touch {} ;
before you upload. It resets the timestamps.

1 Like

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