The objective of BuffaloFQ is to provide a very simple and reliable method of moving files around an architecture.
Installation:
$ mkvirtualenv buffalofq_cpy $ pip install buffalofq –upgrade
Configuration:
Most configuration is handled through a simple yaml file, that is kept in the xdg-compliant config directory. On linux this would be:
$HOME/.config/buffalofq_mover/[config-name1].yml
$HOME/.config/buffalofq_mover/[config-name2].yml
$HOME/.config/buffalofq_mover/[config-name3].yml
Config example:
name: ids_to_load #
status: enabled # choices are: enabled, disabled
polling_seconds: 60 # delay in seconds between checks for new files
limit_total: -1 # choices: -1 (run continuously), 0 (run until source_dir is empty), [some number] run until this number have been moved.
port: 22 #
key_filename: id_auto # your ssh key
log_dir: /data/logs # location buffalofq_mover will write its logs
log_level: debug # choices are: info, warning, error, critical
sort_key: time # choices are: None, name, or name of a field within filename
source_host: localhost # must be localhost at this time
source_user: bobsmith # not yet used
source_dir: /data/output #
source_fn: ‘*’ # wild-card for selecting source files
source_post_dir: /data/archive #
source_post_action: move # choices: move, delete, pass
dest_host: datawarehouse #
dest_user: bobsmith # used to log into dest_host
dest_dir: /data/input #
dest_fn: ‘’ # needed if dest_post_action == symlink
dest_post_dir: None # not used yet
dest_post_action: pass # choices: pass, symlink
Run:
To run once, you can simply run it like:
$ ./buffalofq_mover –config-name [config-name1]
A trivial way to keep it running continuously:
$ nohup ./buffalofq_mover –config-name [config-name1] &
0.0.2 - initial genuinely usable working version - add ability to receive files in order of their name, or any field within the name - add ability to provide name of ssh key to use - rename audit file & buffalofq program to buffalofq_mover - misc general improvements and refactorings
0.0.1 - initial working version
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file buffalofq-0.0.2.tar.gz.
File metadata
- Download URL: buffalofq-0.0.2.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a17578fb57c66a10d073b9034ea8167096383e1a097e9d5375a4e4eeb774150
|
|
| MD5 |
1aec56b110f7a0bf49f7b3e9b46049bd
|
|
| BLAKE2b-256 |
0d7ebcbd628682fee7e6b004e9ccc91cb6dbbccf2a212e09f22c0fb4a9f758d2
|