

#Hosting mirrorsync update
This includes automatically removing objects on the destination if they are removed on the source.įor objects updated on the source to also update on the target, use –overwrite. The mc mirror -watch command continuously synchronizes the source and destination targets for added and deleted objects. Replace TGTPATH with the destination bucket.īehavior MinIO Trims Empty Prefixes on Object Removal Replace TGTALIAS with the alias of a configured S3-compatible host. Replace SRCPATH with the bucket to mirror. Replace SRCALIAS with alias of a configured S3-compatible host. Mc mirror - watch SRCALIAS / SRCPATH TGTALIAS / TGTPATH Objects A, B, and C exist on the watched Target.Ī client writes object D to Source and removes object B.Īfter the operation, objects A and D exist on the Source. watch overwrites objects on the Target if a match exists on Source, like the -overwrite flagįor example, object A and B exist on the watched Source. The Target may have files that do not exist on Source watch continuously synchronizes files from Source to Target until explicitly terminated Use -watch flag to mirror objects from Source to Target, where the Target may also have additional objects not present on the Source. See the Amazon documentation on Storage Classes for more information on S3 storage classses. Set the storage class for the new object(s) on the TARGET. To ensure objects on the Source and Target match both names and content, use -overwrite or -watch. Mc mirror -remove does not verify that the contents of object C are the same on both Source and Target, only that an object called C exists on both. Since an object C already exists on both, nothing moves from Source to Target.Īfter the action, only objects A, B, and C exist on both the Source and the Target. When running mc mirror -remove, objects A and B copy to Target and objects D and E are removed from Target. Use the -remove flag to have the same list of objects on both Source and Target.įor example, objects A, B, and C exist on Source. Removes object(s) on the Target that do not exist on the Source. Specify the string region when creating new bucket(s) on the target. Preserve file system attributes and bucket policy rules of the SOURCE on the TARGET. Mc mirror logs an error and continues to synchronize other objects. Without -overwrite, if an object already exists on the Destination, the mirror process fails to synchronize that object. If an object on Source changes, mc mirror -overwrite synchronizes and overwrites any matching file on Destination.

Mirror object(s) older than the specified time limit.įor example, consider an active mc mirror -overwrite synchronizing content from Source to Destination. Mirror object(s) newer than the specified number of days.įor example: -newer-than 1d2hh3mm4ss. Specify the local network adapter and port address on which to create the scraping endpoint.ĭefaults to localhost:8081). monitoring-addressĬreates a Prometheus endpoint for monitoring mirroring activity. md5įorces all uploads to calculate MD5 checksums. Use this operation to perform validate that the mc mirror operation will only mirror the desired objects or buckets. excludeĮxclude object(s) in the SOURCE path that match the specified object name pattern. You can only delete encrypted objects if you specify the correct -encrypt-key secret key. encrypt-key can use the MC_ENCRYPT_KEY environment variable for retrieving a list of encryption key-value pairs as an alternative to specifying them on the command line. encrypt-keyĮncrypt or decrypt objects using server-side encryption with client-specified keys.Įach VALUE represents the data key to use for encrypting object(s).Įnclose the entire list of key-value pairs passed to :mc-cmd: ~mc mirror -encrypt-key in double quotes ". disable-multipartĭisables multipart upload for the copy session. įor example, -attr key1=value1\ key2=value2\ ke圓=value3. attrĪdd custom metadata for mirrored objects.

Mc mirror uses the object or file names from the SOURCE when synchronizing to the TARGET bucket.
#Hosting mirrorsync download
MinIO Baremetal MinIO Object Storage for Baremetal Infrastructure MinIO Hybrid Cloud MinIO Object Storage for Kubernetes-Managed Private and Public Cloud Infrastructure MinIO for VMware Cloud Foundation MinIO Object Storage for VMware Cloud Foundation 4.2 MinIO Legacy Documentation Legacy Documentation for MinIO Object Storage Blog Resources Partner Pricing Download MinIO Object Storage for Baremetal Infrastructure
