Synchronize files through the sneakernet
Project description
Synchronize files through the sneakernet, i.e. using a removable drive.
Requirements:
rsync. The version must support extended attributes (-X flag).
A removable drive with a filesystem matching the source and target computers.
Feet or a compatible mean of transportation of the removable drive between computers.
Installation
Simply run pip install sneakersync.
Configuration
The configuration is a YAML-formatted file that contains modules (directories to be synchronized) and filters (rules that exclude or include files or directories). Each module must contain a root entry (the top-level path to be synchronized) and may contain filters; if no filter is specified, all files and directories below the root of the module are included. Filters are defined by a list of include or exclude directives.
A minimal example which synchronizes the home folder of a user would look like:
modules:
- root: /home/john.doe
To exclude a directory (and its content) and files with a given extension from a module, add a filters directive:
modules:
- root: /home/john.doe
filters:
- exclude: /home/john.doe/.firefox/caches
- exclude: *.pyc
To filter entries from all modules, use the top-level filters directive:
modules:
- root: /home/john.doe
- root: /home/jane.blogs
filters:
- exclude: .firefox/caches
Filters defined at the top-level will have priority over module-level filters.
Usage
Create a filesystem on a removable drive that matches the source and target computers.
Optional, but highly recommended: encrypt your removable drive.
Store the configuration in a file named sneakersync.cfg on the root of the drive.
To send data, run sneakersync send <PATH_TO_YOUR_DRIVE>.
Move your drive to the other computer and plug it in.
To receive data, run sneakersync receive <PATH_TO_YOUR_DRIVE>.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for sneakersync-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 652448346b0f04c98812354fa229622f15525f8eaa5f728b9df9bfbc310308c6 |
|
MD5 | 86e259488249a330292884a467543b5f |
|
BLAKE2b-256 | 4019ef29dbd567da8f592eb48f7cbf7b5b4e496ee05383754c36c5abb1998b7f |
Hashes for sneakersync-1.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60c953a17f579531770ecfc364d81b3e16ec9c25256c6849c31eb0aaca8c3f5e |
|
MD5 | d2146c8842f82fc0f58dc81943d699e8 |
|
BLAKE2b-256 | 32baeb5e98766f4dfbd88261fe0c887918fcf8c9ca96d8d4b0928f5fd50b98f6 |