1.1. the script makes a backup of files and uploads the files in the google cloud. it automatically creates folders according to the prefix in the google bucket and saves everyting inside the folder named after the bucket. The script is capable of only downloading and uploading new files insted of whole files if the backup and uploading have already initiated.
the method RsdGoogleBucketPrefix could be used to get the name of prefix in the google colud bucket and requires following parameter.
the method RsdGoogleCloudDownload could be used to download the files from the google cloud bucket and requires following parameters
first_time_backup = 'y' or 'n'. however this could be ignored becasue the script will ask later to conform.
y = if the backup is done for the first time , n = if the backup is already initiated before and just need to be updated with new files instead of downloading whole files.
the method RsdGoogleCloudUpload could be used to create a bucket if not exists and upload files and requires following parameters
location = google cloud location where the bucket should exist or ignore if bcuket is already exists.
first_upload = 'y' if yes or 'n' if no. If 'y' is provided the code uploads all the files in the directory if 'n' is provided the code uploads only new files in the direcotry. 'n' only should provided if the upload already from the same the directory.
2.1 the script creates the google bigquery table based on the schema provided externally as text (.txt) file and uploads the data in it.