ftpbackuptool

package module
v0.0.0-...-755405e Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 8 Imported by: 0

README

FTP Backup tool

A tool to make a complete backup of ftp accounts. It downloads one file at time, to avoid transfer errors. Mostly on shared servers where the server cannot handle to many connections.

It can be used to download huge ftp accounts, it supports file skipping when an identical (same size and modification date) is found.

How to use

Its a command line program.

Example run:

chmod +x ftp-backup-tool
./ftp-backup-tool user@example.org mypassword ftp.example.org

By default it will try download the entire ftp account, but you can specify a few options.

  • -p the port (default 21)
  • -t connection timeout in seconds (default 30 seconds)
  • -s the start path to download (default /)
  • -d the download path (default to ./backup)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FTPBackupTool

type FTPBackupTool struct {
	// contains filtered or unexported fields
}

func New

func New(user string, password string, server string, port uint, timeout uint) (*FTPBackupTool, error)

func (*FTPBackupTool) Start

func (f *FTPBackupTool) Start(startPath string, downloadPath string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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