This blog focuses on taking a backup of PHP - MySQL application and how you can use JAM stack with the Jekyll framework to build your personal blog.
Alibaba Cloud's Object Storage Service (OSS) is a reliable, cost-effective, and high-durability cloud storage service. It allows you to upload and archive vast volumes of data to the cloud. OSS will have data longevity (designed for) of 99.9999999999 percent (twelve 9's) and service efficiency of 99.995 percent.
OSS supports RESTful APIs independent from the console. You can store and access any type of data anytime, anywhere, and from any application.
You can use API operations and SDKs provided by Alibaba Cloud or OSS migration tools to transfer large amounts of data to and from Alibaba Cloud OSS. You can use OSS buckets of the Standard storage class to store image, audio, and video files for apps and large websites. You can use OSS buckets of the Infrequent Access (IA), Archive, or Cold Archive storage class to store objects that not accessed often at a low cost.
- storage class
The storage class of an object. OSS provides the following storage classes to cover a variety of data storage scenarios from hot data to cold data: Standard, IA, Archive, and Cold Archive. OSS Standard storage provides high-reliability, high-availability, and high-performance object storage services that can support frequent data access. OSS IA storage is suitable for storing long-lived but less frequently accessed data (an average of once or twice per month). IA storage offers a storage unit price that is lower than Standard storage. OSS Archive storage is suitable for long-term storage (at least six months) of infrequently accessed data. OSS Cold Archive storage is suitable for storing extremely cold data over an ultra-long period of time. For more information, see Introduction to storage classes.
The container used to store objects in OSS. All objects are contained in buckets. You can configure a variety of bucket properties such as the region, ACL, and storage class. You can create buckets of different storage classes to store data based on your requirements. For more information about how to create a bucket, see Create buckets.
The basic unit for data operations in OSS. Objects are also known as files. Each object has metadata, data, and a key. The key is the unique object name in a bucket. Object metadata describes object attributes such as the last modified time and the object size in the key-value pairs format. You can also specify custom metadata of an object.
The physical location of an OSS data center. You can select the region in which to create your buckets based on the cost and the location where requests come from. For more information, see Regions and endpoints.
The domain name used to access OSS. OSS uses HTTP RESTful APIs to provide services. Different regions are accessed by using different endpoints. For the same region, access over the internal network or over the Internet also uses different endpoints. For more information, see Regions and endpoints.
- AccessKey pair
The key pair consists of an AccessKey ID and an AccessKey secret. The AccessKey pair is used to verify access identities. OSS uses an AccessKey pair, which includes an AccessKey ID and an AccessKey secret to implement symmetric encryption and verify the identity of a requester. The AccessKey ID is used to identify a user. The AccessKey secret is used to encrypt and verify the signature string. The AccessKey secret must be kept confidential. For more information about how to obtain an AccessKey pair, see Create an AccessKey pair.
Application backup was and is the biggest challenge for the system administrator. With evolution of the cloud technology, people can use the snapshot of the system and use it as a backup. However there are many other ways with some tweaks and tools to make the backup process easier.
This blog post focuses on taking a backup of PHP - MySQL application, storing the backup on the OSS (Alibaba cloud Object Storage Service). This post covers some of the important aspects of the backup like types of backup, online vs offline backup and types of backup storages.
Using OSS for Application Backup
Object Storage Service (OSS) is secure cloud storage service offered by Alibaba Cloud. OSS can be used to store your application backup securely in the same region or the remote region based on the choices.
- If the application backup size is less than 5 GB in total then a free tire can be utilized to save the backup.
- Use the internal IP address to save the data transfer charges
Alibaba cloud OSS has three storage classes as mentioned below.
Standard Storage: Standard storage is the best available option for the OSS without any data lockin period. Daily application backup - Incremental or differential backup can be stored under the standard storage class.
Infrequent Storage: Infrequent storage can be used for the weekly backup. This storage class comes with a lockin period where minimum 30 days of the file storage is needed. Note that, once the file is stored, modification of the file within 30 days is penalized and penalty charges are applied.
If the files require frequent access then Standard Storage is the best choice.
Archive Storage: As its name implies, Archive Storage is the best fit to archive the backup for longer period. This is one of the cheapest If the backup requires to store for more than 60 days.
Following table gives storage class choice based on the backup type.
In this tutorial, you'll learn how you can use JAM stack with the Jekyll framework to build your own personal blog using only static assets.
An encrypted and secure cloud storage service that can store, process, and access massive amounts of data from anywhere in the world