I'm using https://github.com/prasmussen/gdrive
Hello,
I'm trying to run a daily script that creates a folder in Google Drive and then uploads a bunch of tar archives in it. So far I can create the folder but can't upload if I don't have the id of the folder and I have no idea how to get it. For the time being, I'm uploading to a default folder and manually moving the files.
This is what I have so far
#!/bin/bash
drive folder -t $(date '+%d-%m-%y') //makes the folder
for file in /home/backup/*.tar
do
drive upload -f "$file" -p (the newly created folder id)
done