This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# The script can copy part of TimeMachine folders from one to another place. | |
# In the way like TM does. Next folder contains just difference. | |
# Unfortunatry the target folder will take more space. Becase of rsync doesn't support hard links for folders. | |
BYPASS=/System/Library/Extensions/TMSafetyNet.kext/Contents/Helpers/bypass | |
RSYNC=/usr/local/bin/rsync # Path to rsync. By default in MacOS it's version 2. | |
RSYNC2_ARGS="--extended-attributes" | |
RSYNC3_ARGS="--xattrs --acls --crtimes --one-file-system --numeric-ids" | |
RSYNC_ARGS="--archive --progress -P --human-readable --update --stats --verbose --inplace" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import io | |
import os | |
import urllib | |
import html | |
import json | |
import time | |
import contextlib |