很长一段时间以来,VPS快照只在高端主机公司可用,但在过去几年中,它们在市场上变得越来越普遍。如果您的提供商提供此功能,则此功能可以实时节省时间。
1、What is a Snapshot?
Imagine if you could clone your VPS exactly as it is – byte for byte. That’s what a snapshot is. What you’re actually snapshotting is the storage (your disk), not any processes that are currently running.
2、Does My VPS Need to be Powered Down for a Snapshot?
This depends on the provider. Some providers offer offer snapshots for running VMs. If the VM is not powered down, then you’re getting an inconsistent state on the filesystem. Most of the time this is not an issue – it’s similar to how the VM would recover if you powered it off (a non-graceful power-off). However, if you’re running database systems (MySQL, PostgreSQL, etc.) you probably want to either do a DB dump first or power the VM down before snapshotting.
3、Why Would I Want a Snapshot?
You can:
- Restore the VM back to a snapshot. It’s like a point-in-time restore point. If you’re about to do something dangerous (e.g., upgrading the OS), a snapshot may be an excellent way to protect yourself.
- Use the snapshot to create a new VM. Note that you’ll need to reconfigure the network (unless you’re using DHCP), hostname, etc.
- Use the snapshot as a backup. In fact, snapshots and backups are very similar. Backups typically involve copying files off to another medium and then restoring them. Snapshots operate at the physical storage layer, copying the entire VM image.
4、Are Snapshots Free?
All depends on your provider. Most providers charge for the disk you consume on a per-GB basis.
5、Which Providers Offer Snapshots?
Here’s a list of providers that offer snapshots . If you know of others, please comment below!
- Amazon LightSail
- Amazon AWS
- BandwagonVPS
- BinaryLane
- BuyVM
- Cloudcone
- Contabo
- DigitalOcean
- Google Public Cloud
- Hetzner Cloud
- Linode
- Lunanode
- Microsoft Azure
- OVH Cloud
- Scaleway
- Vultr
注:此文转自LEB博客网站!主要介绍快照的好处以及目前海外一些能够提供快照业务的商家,仅仅只是部分哦,其中有免费的、也有收费的!