irsync 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- irsync/__init__.py +3 -0
- irsync/__main__.py +12 -0
- irsync/backup.py +951 -0
- irsync/cli.py +275 -0
- irsync/diff.py +434 -0
- irsync/options.py +400 -0
- irsync/paths.py +61 -0
- irsync/preflight.py +254 -0
- irsync/py.typed +0 -0
- irsync/replay.py +168 -0
- irsync/rsync_runner.py +224 -0
- irsync/snapshot.py +346 -0
- irsync/statx.py +139 -0
- irsync-0.1.0.dist-info/METADATA +267 -0
- irsync-0.1.0.dist-info/RECORD +18 -0
- irsync-0.1.0.dist-info/WHEEL +4 -0
- irsync-0.1.0.dist-info/entry_points.txt +2 -0
- irsync-0.1.0.dist-info/licenses/LICENSE +201 -0
irsync/__init__.py
ADDED
irsync/__main__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Entry point for `python -m irsync`."""
|
|
2
|
+
|
|
3
|
+
from irsync.cli import main
|
|
4
|
+
|
|
5
|
+
if __name__ == "__main__":
|
|
6
|
+
# Propagate main()'s return value as the process exit status. Without
|
|
7
|
+
# this, `python -m irsync` exited 0 for every failure — refused run (2),
|
|
8
|
+
# lock held (75), user abort (130), rsync's own non-zero code — so a cron
|
|
9
|
+
# wrapper saw success no matter what happened. The `irsync` console
|
|
10
|
+
# script always had this behaviour (its generated wrapper calls
|
|
11
|
+
# sys.exit(main())); this makes the two entry points agree.
|
|
12
|
+
raise SystemExit(main())
|