I frequently take screenshots in my laptop & use them to recall what I had read and worked on (kind of like Anki notes). I wanted to automatically sync my screenshots to google-drive to look at my laptop screenshots on my phone when I am on the go.
Since ubuntu automatically stores screenshots in Pictures folder,
To automatically watch for new file creation in Pictures folder I used incron(inode notify cron)
and to sync them to google-drive I used rclone.
$ incrontab -e
Add the following line
/home/jkl/Pictures IN_CREATE /usr/bin/rclone sync /home/jkl/Pictures google:photos