Skip to content
Landscape Logo for 7 Days Admin Coalition

7 Days to Die Admin Coalition

Resource website for 7 Days to Die from 7DAC discord.

  • Home
  • Newb FAQ Collection
  • Server Managers
  • Linux
  • Toggle search form
  • A Guide on how to install Ich777’s container (docker) on an Unraid server. Server
  • 7 Days to Die Admin Coalition Website 7DAC
  • Resolved Issues Support
  • Server Donations and the EULA Server
  • Linux Server Setup Guide Linux
  • What is a mod? Mods
  • Uncategorized
  • How To Read Your Server Log 7DAC

Automated FTP Backup with Winscp Guide

Posted on June 12, 2021July 14, 2022 By Naz

Winscp is a file transfer program similar to Filezilla. However it has scripting functionality we can use to set up a automated backup of a remote ftp server.


Step 1 – Install WinSCP

Download and install Winscp. You can find the download link Here


Once installed you can enter your servers ftp details and use it just like filezilla.

You can save the session as a site to easily get back to it by right clicking the tab on the top left and selecting “save session as site” from the dropdown.

Here you also have the option of saving passwords if your scrips stops to ask for a password you can try enabling this checkbox.

To edit a saved site you can right click the tab again and go to “sites > Site manager” from the dropdown.

If you encounter an error along the lines of “error could not get directory” and it doesn’t populate the directory. You can go to the site manger and on the bottom right select “advanced”

Then go to “Connection” on the left and uncheck “passive mode”


Step 3 – Setting up the scrips

Next it’s time to prepare the scrips. In this guide we’re going to use a .bat file to hook into windows task scheduler and a winscp script.txt file to script the backup. I’ll post the example/template scrips to show you how it should look and what does what.
You can either edit and use those or make your own. The .bat is very simple. All it has is 1 line “winscp.exe /console /script=NAMEOFYOURBACKUPSCRIPT.txt” all this does is launch winscp and pass the winscpscript.txt file to the console. You can place this file anywhere but for this guide
i’ll save it inside the winscp directory. C:/Program Files (x86)/WinSCP

.bat File

winscp.exe /console /script=7dtdbackupscript.txt

The next script will tell WinSCP what to do. For simplicity i’ll also save this file to the same directory. I also think it might have to be saved there anyway. If you’re unable to edit the script inside this directory, you can create it outside on the desktop for example and just copy it there when you’re done.
If you’re using the template scrips just replace all the capitalisations with your ftp details. There is also comments explaining everything there.

.txt Script File

# These are comments

option batch abort

option confirm off

# example { open naz@192.168.1.87 /log="C:\winscp.log" /loglevel=0 }

open YOURUSERNAME@FTPIPADDRESS /log="C:\winscp.log" /loglevel=0

#Winscp logs are found in C:\Users\YOURUSERNAME\AppData\Local\Temp by default if enabled (search by date modified or "winscp")

#{Alternate open line that allows you to change file protocol and enable/disable passive mode if needed} open ftp://USERNAME:PASSWORD@FTPIPADDRESS/ -passive=0

# Example { get -speed=1000 "/remoteftp*" "C:\backups\7DTD_Remote_Server_Backup.%TIMESTAMP#yyyy-mm-dd_hh-nn-ss%*" }

get -speed=1000 "/PATH TO THE REMOTE FOLDER YOU WANT TO BACKUP*" "LOCAL PATH YOU WANT TO SAVE THE BACKUPS TO\NAME OF THE BACKUP.%TIMESTAMP#yyyy-mm-dd_hh-nn-ss%*"

# -speed= is in kBps (Kilobyte per second) , 1000= 8 mbps (Megabit per second) or 1 Megabyte per second

exit

Step 4 – Setting up schedules to run the scrips

Once the scrips are all done we can set up the automated part using windows task scheduler. Hit start and search for “task scheduler” hit enter. On the right panel click “create basic task”

Give it a name and description if you want.

Select daily for the trigger. We will fine tune this more later.

we’re going to start a program as an action. For the “program/script” browse to where the simple .bat file is that we created earlier. For “Add Arguments” add this:

/log=c:\path\winscp.log /script=NAMEOFYOURSCRIPT.txt

For “start in” put the path to Winscp: C:\Program Files (x86)\WinSCP


Before we hit finish, check the “open the properties checkbox for this task when i click finish” then hit finish.

Go to the “triggers” tab and edit the daily trigger.

Under the advanced settings towards the bottom check “repeat task every” then type how often in hours to want it to run. Ideally you want a backup every hour, however it will depend how big your saves are and how fast your internet is, also how much space you have available. I added the -speed
option in the script so you can limit the speed to prevent your internet being unusable every couple hours for half an hour etc. I also like to change the start time to 0:00:00 so it will run 12 times everyday with 2 hours etc. Hit ok when your finished.


Step 5 – Test everything works ok

Now you can right click the task and click run. If it’s set up correctly you will see it transferring in a cmd window and it will run on it’s own every x hours depending on what you set it too.


Troubleshooting

If the window pops up and then disappears with nothing happening check the logs found in C:\Users\YOURUSERNAME\AppData\Local\Temp by default if enabled (search by date modified or “winscp”)
the directory paths can be a pain to figure out correctly and rented hosts sometimes save the servers save folders in different places. If you’re not sure where your servers saves are, ask your host and they should be able to tell you.
If you’re still having issues check the winscp docs found Here

If you have everything set up correctly and it still doesn’t work, the issue may be with your hosts ftp server. I had an issue with mine and after talking with their support they managed to fix the issue on their end. So it’s worth shooting them a message if it still won’t cooperate.

Server, Tutorials Tags:automated, backup, ftp, remote, script, Server

Post navigation

Previous Post: Hosting CSMM on an Unraid Server.
Next Post: Next Post

Related Posts

  • Server Donations and the EULA Server
  • Prefab Editor: Getting Started Basics Prefabs
  • Linux Server Setup Guide Linux
  • How To Read Your Server Log 7DAC
  • Prefab Editor Overview Guide Prefabs
  • A Guide on how to install Ich777’s container (docker) on an Unraid server. Server

More Related Articles

Newb FAQ Collection Server
Prefab Editor: Getting Started Basics Prefabs
Server Donations and the EULA Server
Linux Server Setup Guide Linux
How to place a custom prefab in an existing world Prefabs
Prefab Editor Overview Guide Prefabs
  • How To Read Your Server LogJuly 5, 2024
    As you look at the log for your server, it...

    Read More “How To Read Your Server Log” »

  • A Guide on how to install Ich777’s container (docker) on an Unraid server.February 7, 2023
    It seems a lot more people are learning and setting...

    Read More “A Guide on how to install Ich777’s container (docker) on an Unraid server.” »

  • (no title)July 20, 2022
    [vc_row][vc_column][vc_text_separator title=”Featured Post”][/vc_column][/vc_row][vc_row][vc_column][vc_masonry_grid post_type=”post” max_items=”1″ element_width=”12″ initial_loading_animation=”none” grid_id=”vc_gid:1658324374615-a02c214f-fcae-2″ taxonomies=”61″][/vc_column][/vc_row][vc_row][vc_column][vc_separator color=”custom”...

    Read More “” »

  • Automated FTP Backup with Winscp GuideJune 12, 2021
    Winscp is a file transfer program similar to Filezilla. However...

    Read More “Automated FTP Backup with Winscp Guide” »

  • Hosting CSMM on an Unraid Server.January 22, 2021
    So you’ve been hosting your own server and now you’ve...

    Read More “Hosting CSMM on an Unraid Server.” »

  • Server Donations and the EULAAugust 18, 2020
    Recently on the discord there has been questions about receiving...

    Read More “Server Donations and the EULA” »

  • Linux Server Setup GuideApril 23, 2020
    Introduction In this guide we will walk you through the...

    Read More “Linux Server Setup Guide” »

  • Prefab Editor: Getting Started BasicsApril 14, 2020
    [vc_row][vc_column][vc_column_text css=”.vc_custom_1658413900607{padding-top: 0px !important;padding-right: 0px !important;padding-bottom: 0px !important;padding-left: 0px !important;}”] ...

    Read More “Prefab Editor: Getting Started Basics” »

  • Prefab Editor Overview GuideApril 14, 2020
    [vc_row][vc_column][vc_column_text]  Keybinds   Z – Place a section box, Use...

    Read More “Prefab Editor Overview Guide” »

  • How to place a custom prefab in an existing worldMarch 24, 2020
    [vc_row][vc_column][vc_column_text] To place it, make sure the servers world is...

    Read More “How to place a custom prefab in an existing world” »

Join Us On Discord

[vc_single_image image="1461" alignment="center" style="vc_box_circle_2" onclick="custom_link" img_link_target="_blank" link="https://discord.gg/VwwYA5h"]

Brain Drain Podcast

[vc_row][vc_column content_align="text-center"][vc_single_image image="1463" img_size="150x203" alignment="center" onclick="custom_link" img_link_target="_blank" link="https://teespring.com/stores/7dac"][/vc_column][/vc_row]

Featured Images

[soliloquy id="534"]

Community Discords

[vc_row][vc_column width="1/2"][vc_single_image image="173" alignment="center" style="vc_box_circle" onclick="custom_link" img_link_target="_blank" display_prop="inline" title="Guppy's Discord" link="https://discord.gg/WpVPJWj7Xk"][/vc_column][vc_column width="1/2"][vc_single_image image="179" alignment="center" style="vc_box_circle" onclick="custom_link" img_link_target="_blank" display_prop="inline" title="Creators Club" link="https://discord.gg/atGrgsz"][/vc_column][/vc_row][vc_row][vc_column][vc_single_image image="1685" alignment="center" style="vc_box_circle" onclick="custom_link" img_link_target="_blank" display_prop="inline" title="The 7DTD Mod Launcher" link="https://discord.gg/PGwCVpSmQd"][/vc_column][/vc_row]
  • Hosting CSMM on an Unraid Server. Uncategorized
  • Prefab Editor Overview Guide Prefabs
  • Server Donations and the EULA Server
  • Linux Server Setup Guide Linux
  • What is a mod? Mods
  • 7 Days to Die Admin Coalition Website 7DAC
  • Prefab Editor: Getting Started Basics Prefabs
  • Newb FAQ Collection Server

Copyright © 2025 7 Days to Die Admin Coalition.

Powered by PressBook Premium theme