Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

Automatically Backup Web Server Data with Winscp Via FTP

Backup Data Webserver is the focus of this article. For website system administrators, data backup and recovery must always be the top priority.

Table of Contents

Automatically Backup Web Server Data with Winscp Via FTP covers the essential facts behind the topic, including what changed, why it mattered, and how it affected users.

In essence, the FTP protocol - File Transfer Protocol is a form of data transfer between many different computers. Formed and developed over a long time, FTP and SFTP - Secure File Transfer Protocol are still the most popular protocols in the world today. To apply for the test below, you need to prepare:

- Server FTP

- Computer using Windows operating system

- WinSCP version - for Windows

Set up Winscp:

The first thing we need to do here is to install WinSCP on a Windows computer:

Automatically Backup Web Server Data with Winscp Via FTP – Set up Winscp:

Then, you need to create a new one section profile to use in later sessions. At the Login screen, we enter the host name (eg ftp. Howtogeek. Com ), Username and Password, select FTP or SFTP, change the appropriate Port value. Then click Save to save this profile:

Automatically Backup Web Server Data with Winscp Via FTP – Set up Winscp: (2)

Create Script:

Here, we will create a simple code for the system to log in to the FTP server, communicate with WinSCP to download the missing files, then create a log file to record all FTP operations. To get started, open NotePad and copy the code below:

Specifically, WinSCP will automatically respond to system notifications to avoid interruption in the middle of operation, then overwrite newly created files. Continue, log in to the FTP server based on the profile created above, change the directory structure (if necessary), pass the binary code (as opposed to ASCII ). Finally, the application will filter the diagram, FTP directory structure on the remote server, and transfer the necessary files to the specified directory. You can refer here.

Before running or editing this script, you should create a test directory on local and remote computers (to avoid possible confusion). On the local machine, we create the testlocal directory (here is F: backups ) and testremote on the FTP server. Then, run the script, if successful, save the above code into any folder on your computer.

Set up Automatic Mode for Scripts:

For the rest of the process, we'll let Windows do it - based on the built-in Task Scheduler feature. You open Control Panel> System and Security> Administrative Tools> Task Scheduler:

Automatically Backup Web Server Data with Winscp Via FTP – Set up Automatic Mode for Scripts: (3)

In the right window, click Create Basic Task:

Automatically Backup Web Server Data with Winscp Via FTP – Set up Automatic Mode for Scripts: (4)

Give a short name and description for this operation, click Next to continue:

Automatically Backup Web Server Data with Winscp Via FTP – Set up Automatic Mode for Scripts: (5)

The next option is the operation mode over time, in this test, we want the script to run every time the computer starts. So you choose When the computer starts:

Automatically Backup Web Server Data with Winscp Via FTP – Set up Automatic Mode for Scripts: (6)

On the next screen, select Start a program and click Next. The system will ask us to point the path to the file to be executed. Click the Browse button and point to C: Program FilesWinSCPWinSCP. Exe. Below, you enter:

/ console /script=f: backupsync. Txt /log=f: backuplog. Txt

Automatically Backup Web Server Data with Winscp Via FTP – Set up Automatic Mode for Scripts: (7) Change the details at this argument as appropriate

After that, the system will display all general information as well as details of the whole process, check again and click Finish. And to make sure the system will work as expected, you should click the Run button to make sure there are no errors arising:

Automatically Backup Web Server Data with Winscp Via FTP – Set up Automatic Mode for Scripts: (8)

Very simple and easy, wish you success!

FAQ

What is the main topic of Automatically Backup Web Server Data with Winscp Via FTP?

Automatically Backup Web Server Data with Winscp Via FTP covers the essential facts behind the topic, including what changed, why it mattered, and how it affected users.

Why is Backup data webserver important?

In essence, the FTP protocol - File Transfer Protocol is a form of data transfer between many different computers.

What should readers remember about Backup data webserver?

Formed and developed over a long time, FTP and SFTP - Secure File Transfer Protocol are still the most popular protocols in the world today.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.