More actions
m (Text replacement - "Category:3DS homebrew applications" to "") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
|version=2021 | |version=2021 | ||
|license=Mixed | |license=Mixed | ||
|download=https://dlhb.gamebrew.org/3dshomebrews/ | |download=https://dlhb.gamebrew.org/3dshomebrews/ftp_sync.zip | ||
|website=https://github.com/branflakes2/ftp_sync | |website=https://github.com/branflakes2/ftp_sync | ||
|source=https://github.com/branflakes2/ftp_sync | |source=https://github.com/branflakes2/ftp_sync | ||
Line 55: | Line 55: | ||
==External links== | ==External links== | ||
* GitHub - https://github.com/branflakes2/ftp_sync | * GitHub - https://github.com/branflakes2/ftp_sync | ||
Latest revision as of 11:17, 22 Haziran 2024
Ftp Sync | |
---|---|
General | |
Author | branflakes2 |
Type | Save and Game Managers |
Version | 2021 |
License | Mixed |
Last Updated | 2021/07/22 |
Links | |
Download | |
Website | |
Source | |
This is a ftp syncing python package that can sync file pairs over ftp and apply patches to them. Useful for using ftpd to transfer ROM save files to and from your DS if you also play on an emulator. Setup a cron job to check for your DS's ftp server periodically to setup automatic syncing.
Installation
Clone this repo, cd into it, run pip3 install
.
User guide
Config file format
Default config file location:
- Windows: Documents\ftp_sync\ftp_sync.yaml
- Linux/MacOS: ~/.config/ftp_sync/ftp_sync.yaml
Use either yaml or json. An example yaml file is provided with all of the currently supported options.
If the patcher option is not specified, files will be transfered unmodified.
Automatic sync behavior
On your first run, you'll likely have to specify one of the to/from commands if both remote and local files exist.
- Will sync if either remote or local file do not exist.
- Will sync if either local or remote files change, not both.
- Will not sync if both files change.
Usage
python -m ftp_sync [OPTIONS] COMMAND [ARGS]... Options: -c, --config-file TEXT Yaml or json config file defining connection and sync pair settings -d, --debug --help Show this message and exit. Commands: sync Automatically sync a specified sync pair. sync-all Automatically sync all sync pairs. sync-all-from Sync all sync pairs remote to local. sync-all-to Sync all sync pairs local to remote. sync-from Sync a pair remote to local. sync-to Sync a pair local to remote.
The singular sync commands (the ones that aren't sync-all\*) take a -n/--name
argument which specifies the sync pair to use.
Ex: python3 -m ftp_sync sync -n pokemon_pearl
will sync the pokemon_pearl
sync pair in the example yaml file.