All Products
Search
Document Center

How do I back up data from an ECS instance to a local file?

Last Updated: Nov 10, 2021

Introduction

This article describes how to back up data from an ECS instance to a local device.

Background

You can use multiple methods to back up data from an ECS instance to its local server. To back up data from an ECS instance to a local server, follow these steps based on the actual environment.

Common methods for Windows and Linux

You can export an image of an ECS instance to a local device and import the exported image to a local virtualization environment. The imported image then resumes to run on the virtual machine. For more information about how to export ECS images, see how to export ECS images.

ECS instances for Windows

Method 1: use a Windows Remote Desktop Connection

You can connect to an ECS instance from a local PC by using the Remote Desktop.

  1. Open the small window on the local computer, enter the mstsc command to open Remote Desktop Connection, enter the IP address of the Windows instance, and click display options.
  2. Select local resources>Detailed information. Alternatively, you can select local resources and click details.
  3. Select the drive option and click OK .
  4. After you enter your account and password and log on to the instance, two local disks are displayed. You can drag the data to be backed up to the local disk by using the system paste copy function.

Method 2: Use OSS to back up data

You can activate Alibaba Cloud OSS, upload objects to OSS over an internal network, and then download the objects to your local host through OSS. For methods of uploading files to OSS, see how to upload files with OSS.

Method 3: use a third-party network disk

You can also install a third-party network disk in the ECS instance, upload data to the third-party network disk, and then download the data from the third-party network disk to the local device.

ECS instances applicable to Linux

Method 1: Use the FTP service to download data to a local file

You can install the FTP service in the ECS instance, and then connect to the ECS instance through the FTP client to download data to the local device. For more information about how to use the FTP service in Linux, see how to use the FTP service in Linux to download data to local on ECS instances.

Method 2: Use the OSS CLI

You can use command lines to upload objects to OSS. Therefore, Linux-based ECS allows you to upload objects to OSS by using command lines and then download the objects to your local host through OSS. For more information about how to use OSS command lines to upload files, see use command lines to upload files to OSS.

Application scope

  • ECS