0
0
GCPcloud~10 mins

Storage transfer service in GCP - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Storage transfer service
Define Transfer Job
Set Source and Destination
Configure Schedule and Options
Start Transfer Job
Service Copies Data
Monitor Transfer Status
Transfer Complete or Error
The flow shows how you create a transfer job, set source and destination, start it, and monitor until completion.
Execution Sample
GCP
gcloud transfer jobs create \
  --source-bucket=source-bucket-name \
  --sink-bucket=destination-bucket-name \
  --schedule-start-date=2024-06-01 \
  --schedule-end-date=2024-06-01 \
  --description="Daily backup"
This command creates a transfer job to copy data from one bucket to another on a specific date.
Process Table
StepActionInput/ConfigService BehaviorResult
1Define Transfer JobJob name, descriptionRegisters job in serviceJob created with ID
2Set Source and DestinationSource: source-bucket-name Destination: destination-bucket-nameValidates buckets existBuckets linked to job
3Configure ScheduleStart date: 2024-06-01 End date: 2024-06-01Schedules job for that dayJob scheduled
4Start Transfer JobTrigger job startService begins copying dataTransfer in progress
5Monitor Transfer StatusCheck job statusReports progress, errorsStatus: Running or Completed
6Transfer CompleteJob finishes copyingMarks job as doneData copied successfully
7ExitNo more scheduled runsJob endsTransfer job completed
💡 Transfer job completes after copying all data on scheduled date.
Status Tracker
VariableStartAfter Step 2After Step 3After Step 4After Step 6Final
Job IDNoneJob123Job123Job123Job123Job123
Source BucketNonesource-bucket-namesource-bucket-namesource-bucket-namesource-bucket-namesource-bucket-name
Destination BucketNonedestination-bucket-namedestination-bucket-namedestination-bucket-namedestination-bucket-namedestination-bucket-name
ScheduleNoneNone2024-06-01 to 2024-06-012024-06-01 to 2024-06-012024-06-01 to 2024-06-012024-06-01 to 2024-06-01
StatusNonePendingPendingRunningCompletedCompleted
Key Moments - 3 Insights
Why does the transfer job have a status of 'Pending' before it starts copying data?
Because after setting the schedule, the job waits for the scheduled time to start. This is shown in execution_table row 3 where the job is scheduled but not yet running.
What happens if the source or destination bucket does not exist when creating the job?
The service validates buckets at step 2 and will not create the job if buckets are invalid. This prevents errors during transfer.
How do you know when the transfer job is fully complete?
At step 6 in the execution_table, the status changes to 'Completed' indicating all data has been copied and the job is done.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the job status after step 4?
APending
BCompleted
CRunning
DFailed
💡 Hint
Check the 'Status' variable in variable_tracker after Step 4.
At which step does the service start copying data?
AStep 3
BStep 4
CStep 2
DStep 6
💡 Hint
Look at the 'Service Behavior' column in execution_table for when copying begins.
If the schedule end date is before the start date, what would happen?
AJob creation fails or no runs scheduled
BJob runs once on start date
CJob runs multiple times
DJob runs indefinitely
💡 Hint
Consider the scheduling logic in execution_table step 3 and how invalid dates affect scheduling.
Concept Snapshot
Storage Transfer Service lets you copy data between buckets or from other sources.
You create a transfer job, set source and destination buckets, and schedule when to run.
The service copies data on schedule and reports status.
You monitor progress and know when transfer completes.
It helps automate data movement safely and reliably.
Full Transcript
Storage Transfer Service in Google Cloud helps move data from one storage location to another automatically. First, you create a transfer job by defining its name and description. Then, you specify the source bucket where data currently lives and the destination bucket where data should go. Next, you set a schedule for when the transfer should happen, such as a specific date or recurring times. When the scheduled time arrives, the service starts copying data from source to destination. You can check the job status anytime to see if it is running, completed, or if there were errors. Once all data is copied, the job marks itself complete. This process helps keep data backed up or moved without manual copying. The execution table shows each step from job creation to completion, and the variable tracker shows how job status and settings change over time. Common confusions include understanding the 'Pending' status before start, bucket validation, and knowing when the job is done. The visual quiz tests understanding of these steps and statuses. Overall, Storage Transfer Service automates and simplifies data transfers in the cloud.