Rclone files on Google Drive and get file weblink to send notification to the Slack

What is the problem you are having with rclone?

We have an requirement to sent Slack notifications about copied files from the same Google Drive (Shared Drive ) from Folder1/anysubfolder/subfolder.../filename to Folder2/Subfolder/Date/"FileType1,2,3 - like PDF/CSV" or "By file parent directory"/filename.... ( Folder2 is shared with specific user to monitor reports ). Yes, we can use webhooks to send Slack notifications, everything is fine. But in Slack message we need to include Folder2 copied file WebLink or URL (like https://drive.google.com/file/{fileid}). Is it possible to retrieve Folder2 copied file webURL somehow ? I have read about rclone backend query drive: "name = 'foo ' \.txt'", but in our case we have 2 files copies located in Folder1 and Folder2 , I guess rclone backend query drive:/Folder2 will not search the files in subfolders/subsubfolder/etc... ( read Drive API - we can search all the files or in specific parent only.)

Maybe there is a solution for my case. Who knows!

Thanks in advance for any response.
Sergejs

Run the command 'rclone version' and share the full output of the command.

rclone v1.67.0

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 6.5.0-1016-aws (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.22.4
  • go/linking: static
  • go/tags: none

Are you on the latest version of rclone? You can validate by checking the version listed here: Rclone downloads
-->

Which cloud storage system are you using? (eg Google Drive)

Google Drive (Shared Drive)

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone copy GDrive-Work1:/Folder1/"$file" GDrive-Work1:/Folder2/"$dir1"/"$dir2"/"$dir3" --log-level=INFO

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

N/A. All works fine

A log from the command that you were trying to run with the -vv flag

N/A. 

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