8.20240801 0700 ClassNotes
8.20240801 0700 ClassNotes
8.20240801 0700 ClassNotes
what is GCS?
what is the purpose of GCS?
Features of GCS?
what is Bucket?
Options we need to choose as part of creation of the bucket?
- bucketname
- regions (single, dual, multiregion)
- storage classes (standard,nearline,coldline,archive)
- Access control (Uniformed, finegrained)
- Protect the data
- Data encryption
Practicals:
GCP Console:
-------------
1. creation of the bucket
2. creation of the folder in bucket
3. uploading a single file into bucket
4. uploading a single file into bucket into folder
5. uploading a complete folder
***********************************************************************************
*
cid,cname,clocation
101,srinivas,hyd
102,quality,viz
cid,cname,clocation
101,srinivas,hyd
102,quality,viz
103,thought,hyd
104,xx,viz
Day2 ==> 10Am uploaded customer.txt ==> 11AM you realized that you uploaded a wrong
file ==> I want to revert my day1 data/file ==> Not possible directly
As per your requirements if you want to protect data because of deletes or updates
in such kind of scenarios we can use the concept called as "object versioning"
if you want to protect your data while cration of the bucket we need to enable
feature called as "Object versioning"
Day2: uploading this file into our bucket ==> it will take backup(version) of your
day1 file (customer.txt_35235234523) ==> upload day2 file
cusomter.txt
cid,cname,clocation
101,srinivas,hyd
102,quality,viz
103,thought,hyd
104,xx,viz
Day2 ==> 10Am uploaded customer.txt ==> 11AM you realized that you uploaded a wrong
file ==> I want to revert my day1 data/file ==> possible directly
Day3: uploading this file into our bucket ==> it will take backup(version) of your
day2 file (customer.txt_46346363) ==> upload day3 file
cusomter.txt
cid,cname,clocation
101,srinivas,hyd
102,quality,viz
103,thought,hyd
104,xx,viz
105,srinivas,hyd
106,quality,viz
1000 backup files ==> is it really useful these many backup files to protect data
==> [NO]
in real time projects we will take only last 7 or 10 versions of the files
object versioning:
- number of versions you want to maintain - 1000
- Expiry days of the version - 365 days
Aug 1st ==> version of the file ==> v1 - delete on aug 6th
Aug 2nd ==> version of the file ==> v2 - delete on aug 7nd
Aug 3rd ==> version of the file ==> v3
Aug 4th ==> version of the file ==> v4
Aug 5th ==> version of the file ==> v5
Aug 6th ==> version of the file ==> v6
Aug 7th ==> version of the file ==> v7
Aug 8th ==> version of the file ==> v8
Aug 9th ==> version of the file ==> v9
Aug 10th ==> version of the file ==> v10
Aug 11th ==> version of the file ==> v11
days - 365
Day1 ==> 100GB data [10 files or 100 files]
Day365 ==>
Data encryption:
---------------
customer.txt
cid,cname,cmobilenumber,cmailid
1,srinivas,734572857325,[email protected]
100,xyzxdfasdfa,235252452345354352
***********************************************************************************
*
banking sectore or telecome domain or insurance domain ==> end user they need to
perform some analysis on business and they need to decissions ==> Data
creation of the buckets / how to create the folder / how to upload the folder / how
to upload a single file /
***********************************************************************************
*
I want to upload/copy a file into from bucet to my loca system ==> gsutil cp
sourcepath targetpath
Whatever questions you are getting in your mind ==> just try to perfrom those
operations by using our commands