Your on-premises Linux server produces a 100-GB directory named /data/export every night. You must upload the entire directory to the Cloud Storage bucket gs://daily-exports from the command line. The transfer must 1) use parallel uploads to saturate available bandwidth, 2) leave any objects that already exist in the bucket unchanged, and 3) allow the operation to be resumed after a network interruption without starting over. Which single command meets all requirements?
The command gsutil -m cp -c -n -r /data/export gs://daily-exports satisfies every stated need.
The -m flag enables parallel execution, creating multiple concurrent upload threads that maximize throughput.
The -n (no-clobber) option tells gsutil to skip objects that already exist at the destination, so previously uploaded files are left untouched and no checksum comparisons are required.
The -c (continue) flag causes gsutil to skip files that were copied successfully in earlier attempts and to resume any partially completed resumable uploads, so rerunning the same command after an interruption finishes only the outstanding work.
The -r option ensures the entire directory tree under /data/export is traversed and copied.
gsutil -m rsync -r … performs additional object listing and checksum comparisons and, without extra flags, may overwrite changed files instead of strictly skipping existing ones.
gcloud storage cp --recursive … uploads files but, by default, does not provide the same level of parallelism, resume behaviour, or no-clobber protection as the gsutil command with -m, -c, and -n.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the '-m' flag in gsutil do?
Open an interactive chat with Bash
How does the '-c' flag ensure resumable uploads?
Open an interactive chat with Bash
What is the purpose of the '-n' (no-clobber) flag in gsutil?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Planning and implementing a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .