0
votes

I need to "move" all the content of a folder, including its subfolders to a bucket in Google Cloud Storage.

The closest way is to use gsutil -rsync, but it clones all the data without moving the files.

I need to move all the data and keep data only in GCP and not in local storage. My local storage is being used only as a pass-thought server (Cause I only have a few GB to store data on local storage)

How can I achieve this? Is there any way with gsutil?

Thanks!

1

1 Answers

2
votes

To move the data to a bucket and reclaim the space on your local disk, you need to use mv command for example:

gsutil mv -r  mylocalfolder gs://mybucketname

mv command copies the files to a bucket and delete them after the upload.