Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Switch FTP Sync

From GameBrew
Switch FTP Sync
SwitchFTPSync.png
General
Authorppkantorski
TypeNetwork
Version0.1.7
LicenseMixed
Last Updated2024/07/16
Links
Download
Website
Source

Switch FTP Sync is an app that monitors an FTP server for Nintendo Switch screenshots as well as specified directories and downloads them to a local directory. It is compatible with Windows, macOS, and Linux.

Features

  • Connects to an FTP server and checks for new files in specified directories.
  • Downloads new screenshots to a local directory.
  • Logs all actions with timestamps.
  • Clears terminal lines for a clean and readable output.

User guide

Requirements

  • Computer running macOS or Windows 10/11.
  • Python 3.x (for building)
  • FTP server accessible with the necessary credentials
    • Requires sys-ftpd or a similar background FTP module running on the Switch.

Configuration

The script reads configuration details from a config.ini file located in the same directory as the script. Below is an example config.ini file:

[FTP]
server = X.X.X.X
port = 5000
user = root
pass = 

[Screenshots]
dt_format = %Y-%m-%d_%H-%M-%S
output_path = 
sync_screenshots = False

[File Sync]
server_path_1 = 
output_path_1 = 
sync_files_1 = False

server_path_2 = 
output_path_2 =
sync_files_2 = False

server_path_3 =
output_path_3 =
sync_files_3 = False

server_path_4 =
output_path_4 =
sync_files_4 = False

server_path_5 =
output_path_5 =
sync_files_5 = False

[Settings]
check_rate = 15
auto_start = False
  • ftp_server: IP address of the FTP server.
  • ftp_port: Port number of the FTP server.
  • ftp_user: Username for FTP login.
  • ftp_pass: Password for FTP login (leave empty if no password).
  • output_path: Local directory where files will be saved.
  • auto_start: Variable for auto start (True/False)
  • check_rate: Time interval (in seconds) to wait between checks.
  • dt_format: Format of image file name.

Hoe to use

Clone or download the repository.

Run the build script to geenerate the compiled application (and install necessary packages):

python3 make.py

Changelog

v0.1.7

  • Implementation of temporary files / folders for downloads.
    • Files will be stored in the specified directories in a 100% complete state rather than partially completed.
    • This should help custom user bots that may want to trigger commands off of the existence of a new file.
  • Users can now check for updates on the "About Switch FTP Sync" page.
  • Slight improvements to the file syncing implementation.

v0.1.6

  • Rename to Switch FTP Sync.
  • Screenshots are now backed up from both the sysnand SD folder and the emunand SD folder.
  • Addition of new "File Sync" implementation.
    • Sync locally files from up to 5 server folders (including subfolders).
    • Notice: Be cautious of the processing time required with folders with too many files / very large files..
  • Update:
    • Bug fixes for FTP disconnections. - 07/14/2024 3:22 AM PST
    • Another bug fix for disconnections. - 07/14/2024 5:34 AM PST

v0.1.5

  • First Release.

External links

Advertising: