0

I have a task (script) that I added via crontab -e (Ubuntu 20.04). The task uses gio to copy a file in /tmp (that was created a line before in the script) to Google Drive. Running the gio command in a shell works fine, but it fails in the task. The failure is

gio: file:///tmp/wiki.tar.bz2: Operation not supported

Why it it working under the shell but not the task? The task runs under my user (as I can see using whoami and id in the script and also the file that is created is owned by me)

The script is

#! /bin/bash

cd ~/ tar jcvf /tmp/wiki.tar.bz2 Wiki gio copy /tmp/wiki.tar.bz2 google-drive://ittay@company.com/

larsks
  • 47,453
IttayD
  • 1,157
  • 4
  • 12
  • 14

0 Answers0