Incremental Backup using RSYNC+SSH
Project description
Incremental Backup using RSYNC+SSH
Installation
Install from PyPi
sudo -H pip install backupman
Install Development version
sudo -H pip -i git+https://github.com/grepos/python-backupman.git
Usages
NAME
backupman - backup script using rsync
NAME
SYNOPSIS
backupman [-i] [-d DAYS] [-e rsh options] <SRC-URI> <BKUP-DST>
DESCRIPTIONS
Mandatory arguments to long options are mandatory for short options too.
-d, --delete-old-backup=DAYS
delete old backup whitch backups older than DAYS ago.
-e, --rsh=RSH-OPTIONS specify the remote shell to use
-i, --incremental incremental backup
-r, --run-as-root remote rsync command run as root using sudo command
--help display this message and exit
--version output version information and exit
SRC-URI: Backup source represented by uri scheme.
PROTOCOL://[USERNAME[:PASSWORD]@]HOSTNAME[:PORT]/PATH/TO/BACKUP
Connect to backup source using SSH
ssh://examples.com/some/directory
ssh://examples.com:2222/some/directory
ssh://username@examples.com/home/directory
ssh://username:password@examples.com/home/directory
Backup source located in local filesystem
fs://some/directory
fs:///some/directory
AUTHOR
Written by E.K. KIM (euikook@{gmail.com, grepos.com})
COPYLIGHT
The MIT Lisense
Copyright (c) 2018 E.K. KIM (euikook@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and
to permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
SEE ALSO
please see https://blog.grepos.com/2018/02/20/incremental-backup-using-rsyncssh/
Define exclude files
A .backupman.excludes file specifies intentionally unsync files that Rsync should ignore. Files already synced by Rsync are deleted; see the NOTES below for details.
.backupman.excludes file MUST BE located at TOP OF BACKUP SOURCE.
backupman sync .backupman.excludes first than sycn other.
Examples
/mnt
/proc
/tmp
/sys
/dev
/run
/sys/fs/cgroup
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file backupman-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: backupman-1.1.2-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28db7270e82cfb5d64d2636c3d27c58a91fa5f5fc3c3cf4dca730d01ea97ab05 |
|
MD5 | 4cc8aaadc67a92a6d69c795a4a06b855 |
|
BLAKE2b-256 | 7de35a35f9793fe1fb90304ef0b66abe7d0f3103f7be3dc24bc6a24db6bc46b6 |