diff options
author | rsiddharth <s@ricketyspace.net> | 2019-11-16 18:16:06 -0500 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2019-11-16 18:16:06 -0500 |
commit | 4a6d92c975738e7ad199628a57d003e5a8ba9343 (patch) | |
tree | 9c12fc671b537493dcde17ff92a28e55cb5d970c /bin/tball | |
parent | 2170f47335316373192863c44137f9445d8e7519 (diff) |
bin/tball: Don't enchive backups.
Diffstat (limited to 'bin/tball')
-rwxr-xr-x | bin/tball | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -88,7 +88,7 @@ should_tb() { local DEST=$2 # Get the number of tballs that exists - local TBALLS=$(find $DEST -type f -name '*.enchive' | wc -l) + local TBALLS=$(find $DEST -type f -name '*.tar.gz' | wc -l) [[ $TBALLS == 0 ]] && return 1 if [ -d $SRC ]; then @@ -170,7 +170,7 @@ clean_ol_tbs() { echo 'Removing old tballs...' while read -r ts; do - rm_file $D/$BN.$ts.tar.xz.enchive + rm_file $D/$BN.$ts.tar.xz done <$RMT # Update suffixes @@ -225,14 +225,9 @@ tb() { fi [[ $? == 1 ]] && clean_tmp $TMP_DIR && exit 1 - # Enchive ball. - echo 'Enchiving '$BALL'.xz...' - enchive archive $BALL.xz - [[ $? == 1 ]] && clean_tmp $TMP_DIR && exit 1 - # Drop ball in destination. - echo 'rsyncing '$BALL'.enchive to '$DEST'...' - rsync $BALL.xz.enchive $DEST + echo 'rsyncing '$BALL'.xz to '$DEST'...' + rsync $BALL.xz $DEST [[ $? == 1 ]] && clean_tmp $TMP_DIR && exit 1 # Store suffix |