I create a script to automatically upload my files to google cloud storage, my vm is in the same project as my Google Cloud Bucket... So I create this script but I can't run it properly
#!/bin/bash
TIME=`date +%b-%d-%y`
FILENAME=backup-$TIME.tar.gz
SRCDIR=opt/R
DESDIR= gsutil gs cp FILENAME -$TIME.tar.gz gs://my-storage-name
tar -cpzf $DESDIR/$FILENAME $SRCDIR
any help?
It will save your file with the name of backup-$TIME.tar.gz