putiosync

package module
v0.0.0-...-5af82db Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 27 Imported by: 0

README

putio-sync

Command-line program to sync a folder between put.io and your computer.

WARNING: The project is still in development and features are subject to change!

Build Status GitHub Release

Installing

If you are on MacOS you can install from brew:

brew install putdotio/putio-sync/putio-sync

Otherwise, get the latest binary from releases page.

Usage

Run the program with your account credentials:

putio-sync -username <username> -password <password>

Then program is going to sync the contents of these folders:

  • $HOME/putio-sync in your computer
  • /putio-sync in your Put.io account

The folders are created if they don't exist. The program exists after sync. You can run it again whenever you want to sync.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

func Sync(ctx context.Context, config Config) error

Types

type Config

type Config struct {
	// Username of put.io account.
	Username string
	// Password of put.io account.
	Password string
	// Do not make changes on filesystems.
	DryRun bool
	// Sync repeatedly. Pause given duration between syncs.
	Repeat time.Duration
	// Listen address for HTTP server.
	Server string
}

Directories

Path Synopsis
cmd
internal
tus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL