Archived
1
Fork 0
Capture screenshots and upload files using rsync
This repository has been archived on 2026-05-19. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Python 90.5%
  • Shell 9.5%
Find a file
2017-08-30 13:45:34 +01:00
tupload Dont install config file, move to home dir 2017-08-29 21:29:14 +01:00
.gitignore Add basic pkgbuild 2017-08-25 21:16:58 +01:00
circle.yml Call redist 2017-08-29 21:20:37 +01:00
PKGBUILD Increment version 2017-08-30 13:45:34 +01:00
README.md Add more readme content 2017-08-26 13:45:31 +01:00
setup.py Increment version 2017-08-30 13:45:34 +01:00

TUpload

CircleCI

Upload files and screenshots to a server using rsync

Usage

upload / tupload

usage: upload [-h] [--progress] [--to TO] file

positional arguments:
  file

optional arguments:
  -h, --help  show this help message and exit
  --progress  Show Upload Progress
  --to TO     Configuration to upload to
upload README.md

upload README.md --to drop

screenshot

usage: screenshot [-h] [--progress] [--to TO] [-w] [-a] [-p]

optional arguments:
  -h, --help            show this help message and exit
  --progress            Show Upload Progress
  --to TO               Configuration to upload to
  -w, --window
  -a, --area
  -p, --include-pointer
screenshot
 
screenshot -wp 

screenshot --to pics

Configuration

Configuration is done using the config file at /etc/.upload, in JSON. Here's an example.

Each top-level key is the name of a config, each config must define 3 keys:

  • destination_server: The address to connect to. User information can be passed using standard SSH syntax.
  • viewable_root: The remote path the file can be viewed at. The file name will be joined to the end of this.
  • remote_path: The directory on the server to put the file, should be writable by the connecting user

Optional Keys

  • screenshot_preset: Filename pattern to user for screenshot.
    • hex: 8 random lowercase hex characters
    • timestamp: unix timestamp of capture time