OLD | NEW |
1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
2 # Copyright 2011 Google Inc. All Rights Reserved. | 2 # Copyright 2011 Google Inc. All Rights Reserved. |
3 # Copyright 2011, Nexenta Systems Inc. | 3 # Copyright 2011, Nexenta Systems Inc. |
4 # | 4 # |
5 # Licensed under the Apache License, Version 2.0 (the "License"); | 5 # Licensed under the Apache License, Version 2.0 (the "License"); |
6 # you may not use this file except in compliance with the License. | 6 # you may not use this file except in compliance with the License. |
7 # You may obtain a copy of the License at | 7 # You may obtain a copy of the License at |
8 # | 8 # |
9 # http://www.apache.org/licenses/LICENSE-2.0 | 9 # http://www.apache.org/licenses/LICENSE-2.0 |
10 # | 10 # |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 gsutil cp -A gs://bucket1/obj gs://bucket2 | 243 gsutil cp -A gs://bucket1/obj gs://bucket2 |
244 | 244 |
245 The gsutil -m flag is disallowed when using the cp -A flag, to ensure that | 245 The gsutil -m flag is disallowed when using the cp -A flag, to ensure that |
246 version ordering is preserved. | 246 version ordering is preserved. |
247 """ | 247 """ |
248 | 248 |
249 _CHECKSUM_VALIDATION_TEXT = """ | 249 _CHECKSUM_VALIDATION_TEXT = """ |
250 | 250 |
251 | 251 |
252 <B>BE CAREFUL WHEN SYNCHRONIZING OVER OS-SPECIFIC FILE TYPTES (SYMLINKS, DEVICES
, ETC.)</B> | |
253 | |
254 Please see the section about OS-specific file types in "gsutil help rsync". | |
255 While that section was written specifically about the rsync command, analogous | |
256 points apply to the cp command. | |
257 | |
258 | |
259 <B>CHECKSUM VALIDATION</B> | 252 <B>CHECKSUM VALIDATION</B> |
260 At the end of every upload or download the gsutil cp command validates that | 253 At the end of every upload or download the gsutil cp command validates that |
261 the checksum it computes for the source file/object matches the checksum | 254 the checksum it computes for the source file/object matches the checksum |
262 the service computes. If the checksums do not match, gsutil will delete the | 255 the service computes. If the checksums do not match, gsutil will delete the |
263 corrupted object and print a warning message. This very rarely happens, but | 256 corrupted object and print a warning message. This very rarely happens, but |
264 if it does, please contact gs-team@google.com. | 257 if it does, please contact gs-team@google.com. |
265 | 258 |
266 If you know the MD5 of a file before uploading you can specify it in the | 259 If you know the MD5 of a file before uploading you can specify it in the |
267 Content-MD5 header, which will cause the cloud storage service to reject the | 260 Content-MD5 header, which will cause the cloud storage service to reject the |
268 upload if the MD5 doesn't match the value computed by the service. For | 261 upload if the MD5 doesn't match the value computed by the service. For |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 | 527 |
535 export TMPDIR=/some/directory | 528 export TMPDIR=/some/directory |
536 | 529 |
537 On Windows 7 you can change the TMPDIR environment variable from Start -> | 530 On Windows 7 you can change the TMPDIR environment variable from Start -> |
538 Computer -> System -> Advanced System Settings -> Environment Variables. | 531 Computer -> System -> Advanced System Settings -> Environment Variables. |
539 You need to reboot after making this change for it to take effect. (Rebooting | 532 You need to reboot after making this change for it to take effect. (Rebooting |
540 is not necessary after running the export command on Linux and macOS.) | 533 is not necessary after running the export command on Linux and macOS.) |
541 """ | 534 """ |
542 | 535 |
543 _COPYING_SPECIAL_FILES_TEXT = """ | 536 _COPYING_SPECIAL_FILES_TEXT = """ |
544 <B>COPYING SPECIAL FILES</B> | 537 <B>SYNCHRONIZING OVER OS-SPECIFIC FILE TYPES (SYMLINKS, DEVICES, ETC.)</B> |
545 gsutil cp does not support copying special file types such as sockets, device | 538 |
546 files, named pipes, or any other non-standard files intended to represent an | 539 Please see the section about OS-specific file types in "gsutil help rsync". |
547 operating system resource. You should not run gsutil cp with sources that | 540 While that section was written specifically about the rsync command, analogous |
548 include such files (for example, recursively copying the root directory on | 541 points apply to the cp command. |
549 Linux that includes /dev ). If you do, gsutil cp may fail or hang. | |
550 """ | 542 """ |
551 | 543 |
552 _OPTIONS_TEXT = """ | 544 _OPTIONS_TEXT = """ |
553 <B>OPTIONS</B> | 545 <B>OPTIONS</B> |
554 -a canned_acl Sets named canned_acl when uploaded objects created. See | 546 -a canned_acl Sets named canned_acl when uploaded objects created. See |
555 "gsutil help acls" for further details. | 547 "gsutil help acls" for further details. |
556 | 548 |
557 -A Copy all source versions from a source buckets/folders. | 549 -A Copy all source versions from a source buckets/folders. |
558 If not set, only the live version of each source object is | 550 If not set, only the live version of each source object is |
559 copied. Note: this option is only useful when the destination | 551 copied. Note: this option is only useful when the destination |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1342 no_clobber=no_clobber, | 1334 no_clobber=no_clobber, |
1343 daisy_chain=daisy_chain, | 1335 daisy_chain=daisy_chain, |
1344 read_args_from_stdin=read_args_from_stdin, | 1336 read_args_from_stdin=read_args_from_stdin, |
1345 print_ver=print_ver, | 1337 print_ver=print_ver, |
1346 use_manifest=use_manifest, | 1338 use_manifest=use_manifest, |
1347 preserve_acl=preserve_acl, | 1339 preserve_acl=preserve_acl, |
1348 canned_acl=canned_acl, | 1340 canned_acl=canned_acl, |
1349 skip_unsupported_objects=self.skip_unsupported_objects, | 1341 skip_unsupported_objects=self.skip_unsupported_objects, |
1350 test_callback_file=test_callback_file, | 1342 test_callback_file=test_callback_file, |
1351 dest_storage_class=dest_storage_class) | 1343 dest_storage_class=dest_storage_class) |
OLD | NEW |