FtpBackup Overview
FtpBackup provides a simple way to backup all things in your folder to FTP.
FtpBackup take thesettings in the config file (default is .ftpbackup). And you can add ignore files in .ftpignore and .gitignore.
Installation
pip install ftpbackup
Tested Platforms
Python:
3.4-3.6
Windows (32bit/64bit):
Only test on win10 now.
Getting started
Generate your config file
ftpbk genconf
Edit your config file.
Add a new file called ‘.ftpignore’ and edit it.
Backup your floder to FTP by the command.
ftpbk backup
NOTE : Because .ftpbackup contains IP, password, and other pravite info. So it’s necessary to add it in .gitignore or .ftpignore manually. You can also add it in git global ignore file list.
Set the config file (default: .ftpconfig)
The default config is like below.
{
"protocol": "ftp", // string - Only 'ftp' now.
"host": "localhost", // string - The hostname or IP address of the FTP server. Default: 'localhost'
"encoding": "utf-8", // string - The encoding of the FTP server. Default: utf-8
"port": 21, // integer - The port of the FTP server. Default: 21
"user": "anonymous", // string - Username for authentication. Default: 'anonymous'
"pass": "anonymous@", // string - Password for authentication. Default: 'anonymous@'
"remote": "/", // string - The path on FTP to upload files.
// NOTE : Use absolute path of remote or get a error.
"local": ".", // string - The folder on local to be uploaded.
"useGitIgnore": true, // bool - Use .gitignore in ignored file list.
"gitIgnoreEncoding": "utf-8", // string - The encoding of .gitignore
"useFtpIgnore": true, // bool - Use .ftpignore in ignored file list.
"ftpIgnoreEncoding": "utf-8" // string - The encoding of .ftpignore
}
Set the .ftpignore
The format of .ftpignore is just like .gitignore.
CLI
usage: ftpbk [-h] {genconf,backup} ...
Backup to FTP.
optional arguments:
-h, --help show this help message and exit
commands:
{genconf,backup}
command ‘genconf’:
usage: ftpbk genconf [-h] [-F] [-f FILE]
Generate a default config file.
optional arguments:
-h, --help show this help message and exit
-F, --force overwrite the config file if it exists.
-f FILE, --file FILE assign the config file to be writed, default is
'.ftpbackup'.
command ‘backup’:
usage: ftpbk backup [-h] [-c CONFIGFILE]
Backup all the file in the 'local' floder to 'remote' on ftp. You can change
the config in config file(default is '.ftpbackup').
optional arguments:
-h, --help show this help message and exit
-c CONFIGFILE, --conf CONFIGFILE
assign the config file to be loaded, default is
'.ftpbackup'.
Metadata
Release files for ftpbackup 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ftpbackup-0.1.6.tar.gz | 7.3 kB | Without provenance | Details for ftpbackup-0.1.6.tar.gz |
Release files / ftpbackup-0.1.6.tar.gz
| Download URL | ftpbackup-0.1.6.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14ec92defb06586f91ec114c5563ab0d0fdc9b60a58472ad4e26937fe6748594
|
|
BLAKE2b-256 checksum How to use checksums |
6528954fa21200de199cffc146fad69ade78e98e325e1feabc6250470090ff03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ftpbackup 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.