如何将本地文件夹与Google Cloud Platform存储桶中的文件夹同步?

时间:2016-06-06 16:25:36

标签: synchronization google-cloud-storage google-cloud-platform

我想在我的一个存储桶(甚至是整个存储桶)中同步一个文件夹,并在多个Windows计算机中同步一个本地文件夹。我不介意在后台运行一些脚本。有没有办法做到这一点?我没有找到任何资源。我尝试过使用CrossFTP,这是一个支持Google Cloud Platform的FTP客户端,但同步只能在支付30美元时才可用,我宁愿避免说实话。 FileZilla也是一个不错的选择,但我似乎无法得到它并与谷歌合作。有任何想法吗?任何帮助或建议将不胜感激。 提前谢谢。

2 个答案:

答案 0 :(得分:5)

您可以使用$(window).scroll(function () { // If search open on scroll hide if($('.filter').length > 0){ if($('.search').is( ":visible" )){ $('.search').toggle("slow"); $('.search').hide(); } } // Add Fixed position when position 63 if($('.filter').length > 0 && $(window).scrollTop() >= 63){ if($('.search').is( ":visible" )){ $('.search').slideToggle( "slow", function() { $('.search').hide(); }); } // Set fixed $('.filter').addClass('fixed-position'); } // Remove fixed on 61 if($('.filter').length > 0 && $(window).scrollTop() <= 61 && $('.filter').hasClass('fixed-position')){ $('.filter').removeClass('fixed-position'); } }); 并编写一个可以间隔运行的脚本来上传/同步

上传:https://cloud.google.com/storage/docs/gsutil/commands/cp#description

gsutil

同步: https://cloud.google.com/storage/docs/gsutil/commands/rsync

gsutil cp *.txt gs://my-bucket

对于您的用例,请同步其中一个存储桶,然后同步回所有计算机。

答案 1 :(得分:0)

要更新可用选项,GCP现在提供Data Transfer Service,可以安排将{prem data}转移到云存储桶中。

相关问题