NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

helper-scripts/dev_tests/test_backup_and_restore.sh

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

test_backup_and_restore.sh on main
Author Date Commit Line Code
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
1
#!/usr/bin/env bash
Open commit View diff
1 #!/usr/bin/env bash
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
2
Open commit View diff
2
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
3
# Test script for backup_and_restore.sh
Open commit View diff
3 # Test script for backup_and_restore.sh
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
4
# Tests backward compatibility with .tar.gz and new .tar.zst format
Open commit View diff
4 # Tests backward compatibility with .tar.gz and new .tar.zst format
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
5
Open commit View diff
5
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
6
set -e
Open commit View diff
6 set -e
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
7
Open commit View diff
7
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
8
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Open commit View diff
8 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
9
BACKUP_IMAGE="${BACKUP_IMAGE:-ghcr.io/mailcow/backup:latest}"
Open commit View diff
9 BACKUP_IMAGE="${BACKUP_IMAGE:-ghcr.io/mailcow/backup:latest}"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
10
TEST_DIR="/tmp/mailcow_backup_test_$$"
Open commit View diff
10 TEST_DIR="/tmp/mailcow_backup_test_$$"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
11
THREADS=2
Open commit View diff
11 THREADS=2
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
12
Open commit View diff
12
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
13
echo "=== Mailcow Backup & Restore Test Suite ==="
Open commit View diff
13 echo "=== Mailcow Backup & Restore Test Suite ==="
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
14
echo "Test directory: ${TEST_DIR}"
Open commit View diff
14 echo "Test directory: ${TEST_DIR}"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
15
echo "Backup image: ${BACKUP_IMAGE}"
Open commit View diff
15 echo "Backup image: ${BACKUP_IMAGE}"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
16
echo ""
Open commit View diff
16 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
17
Open commit View diff
17
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
18
# Cleanup function
Open commit View diff
18 # Cleanup function
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
19
cleanup() {
Open commit View diff
19 cleanup() {
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
20
  echo "Cleaning up test files..."
Open commit View diff
20 echo "Cleaning up test files..."
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
21
  rm -rf "${TEST_DIR}"
Open commit View diff
21 rm -rf "${TEST_DIR}"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
22
  docker rmi mailcow-backup-test 2>/dev/null || true
Open commit View diff
22 docker rmi mailcow-backup-test 2>/dev/null || true
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
23
}
Open commit View diff
23 }
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
24
trap cleanup EXIT
Open commit View diff
24 trap cleanup EXIT
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
25
Open commit View diff
25
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
26
# Create test directory structure
Open commit View diff
26 # Create test directory structure
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
27
mkdir -p "${TEST_DIR}"/{test_data,backup_zst,backup_gz,restore_zst,restore_gz,backup_large_zst,backup_large_gz}
Open commit View diff
27 mkdir -p "${TEST_DIR}"/{test_data,backup_zst,backup_gz,restore_zst,restore_gz,backup_large_zst,backup_large_gz}
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
28
echo "Test data for mailcow backup compatibility test" > "${TEST_DIR}/test_data/test.txt"
Open commit View diff
28 echo "Test data for mailcow backup compatibility test" > "${TEST_DIR}/test_data/test.txt"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
29
echo "Additional file to verify complete restore" > "${TEST_DIR}/test_data/test2.txt"
Open commit View diff
29 echo "Additional file to verify complete restore" > "${TEST_DIR}/test_data/test2.txt"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
30
Open commit View diff
30
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
31
# Build test backup image with zstd support
Open commit View diff
31 # Build test backup image with zstd support
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
32
echo "=== Building backup image with zstd support ==="
Open commit View diff
32 echo "=== Building backup image with zstd support ==="
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
33
docker build -t mailcow-backup-test "${SCRIPT_DIR}/../data/Dockerfiles/backup/" || {
Open commit View diff
33 docker build -t mailcow-backup-test "${SCRIPT_DIR}/../data/Dockerfiles/backup/" || {
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
34
  echo "ERROR: Failed to build backup image"
Open commit View diff
34 echo "ERROR: Failed to build backup image"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
35
  exit 1
Open commit View diff
35 exit 1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
36
}
Open commit View diff
36 }
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
37
Open commit View diff
37
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
38
# Test 1: Create .tar.zst backup
Open commit View diff
38 # Test 1: Create .tar.zst backup
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
39
echo ""
Open commit View diff
39 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
40
echo "=== Test 1: Creating .tar.zst backup ==="
Open commit View diff
40 echo "=== Test 1: Creating .tar.zst backup ==="
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
41
docker run --rm \
Open commit View diff
41 docker run --rm \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
42
  -w /data \
Open commit View diff
42 -w /data \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
43
  -v "${TEST_DIR}/test_data:/data:ro" \
Open commit View diff
43 -v "${TEST_DIR}/test_data:/data:ro" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
44
  -v "${TEST_DIR}/backup_zst:/backup" \
Open commit View diff
44 -v "${TEST_DIR}/backup_zst:/backup" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
45
  mailcow-backup-test \
Open commit View diff
45 mailcow-backup-test \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
46
  /bin/tar --use-compress-program="zstd --rsyncable -T${THREADS}" \
Open commit View diff
46 /bin/tar --use-compress-program="zstd --rsyncable -T${THREADS}" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
47
  -cvpf /backup/backup_test.tar.zst . \
Open commit View diff
47 -cvpf /backup/backup_test.tar.zst . \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
48
  > /dev/null
Open commit View diff
48 > /dev/null
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
49
echo "✓ .tar.zst backup created: $(ls -lh ${TEST_DIR}/backup_zst/backup_test.tar.zst | awk '{print $5}')"
Open commit View diff
49 echo "✓ .tar.zst backup created: $(ls -lh ${TEST_DIR}/backup_zst/backup_test.tar.zst | awk '{print $5}')"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
50
Open commit View diff
50
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
51
# Test 2: Create .tar.gz backup
Open commit View diff
51 # Test 2: Create .tar.gz backup
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
52
echo ""
Open commit View diff
52 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
53
echo "=== Test 2: Creating .tar.gz backup (legacy) ==="
Open commit View diff
53 echo "=== Test 2: Creating .tar.gz backup (legacy) ==="
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
54
docker run --rm \
Open commit View diff
54 docker run --rm \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
55
  -w /data \
Open commit View diff
55 -w /data \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
56
  -v "${TEST_DIR}/test_data:/data:ro" \
Open commit View diff
56 -v "${TEST_DIR}/test_data:/data:ro" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
57
  -v "${TEST_DIR}/backup_gz:/backup" \
Open commit View diff
57 -v "${TEST_DIR}/backup_gz:/backup" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
58
  mailcow-backup-test \
Open commit View diff
58 mailcow-backup-test \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
59
  /bin/tar --use-compress-program="pigz --rsyncable -p ${THREADS}" \
Open commit View diff
59 /bin/tar --use-compress-program="pigz --rsyncable -p ${THREADS}" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
60
  -cvpf /backup/backup_test.tar.gz . \
Open commit View diff
60 -cvpf /backup/backup_test.tar.gz . \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
61
  > /dev/null
Open commit View diff
61 > /dev/null
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
62
echo "✓ .tar.gz backup created: $(ls -lh ${TEST_DIR}/backup_gz/backup_test.tar.gz | awk '{print $5}')"
Open commit View diff
62 echo "✓ .tar.gz backup created: $(ls -lh ${TEST_DIR}/backup_gz/backup_test.tar.gz | awk '{print $5}')"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
63
Open commit View diff
63
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
64
# Test 3: Test get_archive_info function
Open commit View diff
64 # Test 3: Test get_archive_info function
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
65
echo ""
Open commit View diff
65 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
66
echo "=== Test 3: Testing get_archive_info function ==="
Open commit View diff
66 echo "=== Test 3: Testing get_archive_info function ==="
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
67
Open commit View diff
67
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
68
# Extract and test the function directly
Open commit View diff
68 # Extract and test the function directly
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
69
get_archive_info() {
Open commit View diff
69 get_archive_info() {
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
70
  local backup_name="$1"
Open commit View diff
70 local backup_name="$1"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
71
  local location="$2"
Open commit View diff
71 local location="$2"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
72
Open commit View diff
72
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
73
  if [[ -f "${location}/${backup_name}.tar.zst" ]]; then
Open commit View diff
73 if [[ -f "${location}/${backup_name}.tar.zst" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
74
    echo "${backup_name}.tar.zst|zstd -d -T${THREADS}"
Open commit View diff
74 echo "${backup_name}.tar.zst|zstd -d -T${THREADS}"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
75
  elif [[ -f "${location}/${backup_name}.tar.gz" ]]; then
Open commit View diff
75 elif [[ -f "${location}/${backup_name}.tar.gz" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
76
    echo "${backup_name}.tar.gz|pigz -d -p ${THREADS}"
Open commit View diff
76 echo "${backup_name}.tar.gz|pigz -d -p ${THREADS}"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
77
  else
Open commit View diff
77 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
78
    echo ""
Open commit View diff
78 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
79
  fi
Open commit View diff
79 fi
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
80
}
Open commit View diff
80 }
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
81
Open commit View diff
81
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
82
# Test with .tar.zst
Open commit View diff
82 # Test with .tar.zst
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
83
result=$(get_archive_info "backup_test" "${TEST_DIR}/backup_zst")
Open commit View diff
83 result=$(get_archive_info "backup_test" "${TEST_DIR}/backup_zst")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
84
if [[ "${result}" =~ "zstd" ]]; then
Open commit View diff
84 if [[ "${result}" =~ "zstd" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
85
  echo "✓ Correctly detects .tar.zst and returns zstd decompressor"
Open commit View diff
85 echo "✓ Correctly detects .tar.zst and returns zstd decompressor"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
86
else
Open commit View diff
86 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
87
  echo "✗ Failed to detect .tar.zst"
Open commit View diff
87 echo "✗ Failed to detect .tar.zst"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
88
  exit 1
Open commit View diff
88 exit 1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
89
fi
Open commit View diff
89 fi
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
90
Open commit View diff
90
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
91
# Test with .tar.gz
Open commit View diff
91 # Test with .tar.gz
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
92
result=$(get_archive_info "backup_test" "${TEST_DIR}/backup_gz")
Open commit View diff
92 result=$(get_archive_info "backup_test" "${TEST_DIR}/backup_gz")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
93
if [[ "${result}" =~ "pigz" ]]; then
Open commit View diff
93 if [[ "${result}" =~ "pigz" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
94
  echo "✓ Correctly detects .tar.gz and returns pigz decompressor"
Open commit View diff
94 echo "✓ Correctly detects .tar.gz and returns pigz decompressor"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
95
else
Open commit View diff
95 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
96
  echo "✗ Failed to detect .tar.gz"
Open commit View diff
96 echo "✗ Failed to detect .tar.gz"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
97
  exit 1
Open commit View diff
97 exit 1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
98
fi
Open commit View diff
98 fi
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
99
Open commit View diff
99
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
100
# Test with no file
Open commit View diff
100 # Test with no file
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
101
result=$(get_archive_info "backup_test" "${TEST_DIR}")
Open commit View diff
101 result=$(get_archive_info "backup_test" "${TEST_DIR}")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
102
if [[ -z "${result}" ]]; then
Open commit View diff
102 if [[ -z "${result}" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
103
  echo "✓ Correctly returns empty when no backup file found"
Open commit View diff
103 echo "✓ Correctly returns empty when no backup file found"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
104
else
Open commit View diff
104 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
105
  echo "✗ Should return empty but got: ${result}"
Open commit View diff
105 echo "✗ Should return empty but got: ${result}"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
106
  exit 1
Open commit View diff
106 exit 1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
107
fi
Open commit View diff
107 fi
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
108
Open commit View diff
108
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
109
# Test 4: Restore from .tar.zst
Open commit View diff
109 # Test 4: Restore from .tar.zst
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
110
echo ""
Open commit View diff
110 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
111
echo "=== Test 4: Restoring from .tar.zst ==="
Open commit View diff
111 echo "=== Test 4: Restoring from .tar.zst ==="
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
112
docker run --rm \
Open commit View diff
112 docker run --rm \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
113
  -w /restore \
Open commit View diff
113 -w /restore \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
114
  -v "${TEST_DIR}/backup_zst:/backup:ro" \
Open commit View diff
114 -v "${TEST_DIR}/backup_zst:/backup:ro" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
115
  -v "${TEST_DIR}/restore_zst:/restore" \
Open commit View diff
115 -v "${TEST_DIR}/restore_zst:/restore" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
116
  mailcow-backup-test \
Open commit View diff
116 mailcow-backup-test \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
117
  /bin/tar --use-compress-program="zstd -d -T${THREADS}" -xvpf /backup/backup_test.tar.zst \
Open commit View diff
117 /bin/tar --use-compress-program="zstd -d -T${THREADS}" -xvpf /backup/backup_test.tar.zst \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
118
  > /dev/null 2>&1
Open commit View diff
118 > /dev/null 2>&1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
119
Open commit View diff
119
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
120
if [[ -f "${TEST_DIR}/restore_zst/test.txt" ]] && \
Open commit View diff
120 if [[ -f "${TEST_DIR}/restore_zst/test.txt" ]] && \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
121
   [[ -f "${TEST_DIR}/restore_zst/test2.txt" ]]; then
Open commit View diff
121 [[ -f "${TEST_DIR}/restore_zst/test2.txt" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
122
  echo "✓ Successfully restored from .tar.zst"
Open commit View diff
122 echo "✓ Successfully restored from .tar.zst"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
123
else
Open commit View diff
123 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
124
  echo "✗ Failed to restore from .tar.zst"
Open commit View diff
124 echo "✗ Failed to restore from .tar.zst"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
125
  ls -la "${TEST_DIR}/restore_zst/" || true
Open commit View diff
125 ls -la "${TEST_DIR}/restore_zst/" || true
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
126
  exit 1
Open commit View diff
126 exit 1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
127
fi
Open commit View diff
127 fi
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
128
Open commit View diff
128
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
129
# Test 5: Restore from .tar.gz
Open commit View diff
129 # Test 5: Restore from .tar.gz
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
130
echo ""
Open commit View diff
130 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
131
echo "=== Test 5: Restoring from .tar.gz (backward compatibility) ==="
Open commit View diff
131 echo "=== Test 5: Restoring from .tar.gz (backward compatibility) ==="
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
132
docker run --rm \
Open commit View diff
132 docker run --rm \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
133
  -w /restore \
Open commit View diff
133 -w /restore \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
134
  -v "${TEST_DIR}/backup_gz:/backup:ro" \
Open commit View diff
134 -v "${TEST_DIR}/backup_gz:/backup:ro" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
135
  -v "${TEST_DIR}/restore_gz:/restore" \
Open commit View diff
135 -v "${TEST_DIR}/restore_gz:/restore" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
136
  mailcow-backup-test \
Open commit View diff
136 mailcow-backup-test \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
137
  /bin/tar --use-compress-program="pigz -d -p ${THREADS}" -xvpf /backup/backup_test.tar.gz \
Open commit View diff
137 /bin/tar --use-compress-program="pigz -d -p ${THREADS}" -xvpf /backup/backup_test.tar.gz \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
138
  > /dev/null 2>&1
Open commit View diff
138 > /dev/null 2>&1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
139
Open commit View diff
139
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
140
if [[ -f "${TEST_DIR}/restore_gz/test.txt" ]] && \
Open commit View diff
140 if [[ -f "${TEST_DIR}/restore_gz/test.txt" ]] && \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
141
   [[ -f "${TEST_DIR}/restore_gz/test2.txt" ]]; then
Open commit View diff
141 [[ -f "${TEST_DIR}/restore_gz/test2.txt" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
142
  echo "✓ Successfully restored from .tar.gz (backward compatible)"
Open commit View diff
142 echo "✓ Successfully restored from .tar.gz (backward compatible)"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
143
else
Open commit View diff
143 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
144
  echo "✗ Failed to restore from .tar.gz"
Open commit View diff
144 echo "✗ Failed to restore from .tar.gz"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
145
  ls -la "${TEST_DIR}/restore_gz/" || true
Open commit View diff
145 ls -la "${TEST_DIR}/restore_gz/" || true
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
146
  exit 1
Open commit View diff
146 exit 1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
147
fi
Open commit View diff
147 fi
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
148
Open commit View diff
148
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
149
# Test 6: Verify content integrity
Open commit View diff
149 # Test 6: Verify content integrity
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
150
echo ""
Open commit View diff
150 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
151
echo "=== Test 6: Verifying content integrity ==="
Open commit View diff
151 echo "=== Test 6: Verifying content integrity ==="
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
152
original_content=$(cat "${TEST_DIR}/test_data/test.txt")
Open commit View diff
152 original_content=$(cat "${TEST_DIR}/test_data/test.txt")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
153
zst_content=$(cat "${TEST_DIR}/restore_zst/test.txt")
Open commit View diff
153 zst_content=$(cat "${TEST_DIR}/restore_zst/test.txt")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
154
gz_content=$(cat "${TEST_DIR}/restore_gz/test.txt")
Open commit View diff
154 gz_content=$(cat "${TEST_DIR}/restore_gz/test.txt")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
155
Open commit View diff
155
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
156
if [[ "${original_content}" == "${zst_content}" ]] && \
Open commit View diff
156 if [[ "${original_content}" == "${zst_content}" ]] && \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
157
   [[ "${original_content}" == "${gz_content}" ]]; then
Open commit View diff
157 [[ "${original_content}" == "${gz_content}" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
158
  echo "✓ Content integrity verified for both formats"
Open commit View diff
158 echo "✓ Content integrity verified for both formats"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
159
else
Open commit View diff
159 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
160
  echo "✗ Content mismatch detected"
Open commit View diff
160 echo "✗ Content mismatch detected"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
161
  exit 1
Open commit View diff
161 exit 1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
162
fi
Open commit View diff
162 fi
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
163
Open commit View diff
163
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
164
# Test 7: Compare compression ratios
Open commit View diff
164 # Test 7: Compare compression ratios
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
165
echo ""
Open commit View diff
165 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
166
echo "=== Test 7: Compression comparison ==="
Open commit View diff
166 echo "=== Test 7: Compression comparison ==="
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
167
zst_size=$(stat -f%z "${TEST_DIR}/backup_zst/backup_test.tar.zst" 2>/dev/null || stat -c%s "${TEST_DIR}/backup_zst/backup_test.tar.zst")
Open commit View diff
167 zst_size=$(stat -f%z "${TEST_DIR}/backup_zst/backup_test.tar.zst" 2>/dev/null || stat -c%s "${TEST_DIR}/backup_zst/backup_test.tar.zst")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
168
gz_size=$(stat -f%z "${TEST_DIR}/backup_gz/backup_test.tar.gz" 2>/dev/null || stat -c%s "${TEST_DIR}/backup_gz/backup_test.tar.gz")
Open commit View diff
168 gz_size=$(stat -f%z "${TEST_DIR}/backup_gz/backup_test.tar.gz" 2>/dev/null || stat -c%s "${TEST_DIR}/backup_gz/backup_test.tar.gz")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
169
improvement=$(echo "scale=2; (${gz_size} - ${zst_size}) * 100 / ${gz_size}" | bc)
Open commit View diff
169 improvement=$(echo "scale=2; (${gz_size} - ${zst_size}) * 100 / ${gz_size}" | bc)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
170
Open commit View diff
170
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
171
echo "  Small files - .tar.gz size: ${gz_size} bytes"
Open commit View diff
171 echo " Small files - .tar.gz size: ${gz_size} bytes"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
172
echo "  Small files - .tar.zst size: ${zst_size} bytes"
Open commit View diff
172 echo " Small files - .tar.zst size: ${zst_size} bytes"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
173
echo "  Small files - Improvement: ${improvement}% smaller with zstd"
Open commit View diff
173 echo " Small files - Improvement: ${improvement}% smaller with zstd"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
174
Open commit View diff
174
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
175
# Test 8: Error handling - missing backup file
Open commit View diff
175 # Test 8: Error handling - missing backup file
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
176
echo ""
Open commit View diff
176 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
177
echo "=== Test 8: Error handling - Missing backup file ==="
Open commit View diff
177 echo "=== Test 8: Error handling - Missing backup file ==="
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
178
result=$(get_archive_info "nonexistent_backup" "${TEST_DIR}/backup_zst")
Open commit View diff
178 result=$(get_archive_info "nonexistent_backup" "${TEST_DIR}/backup_zst")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
179
if [[ -z "${result}" ]]; then
Open commit View diff
179 if [[ -z "${result}" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
180
  echo "✓ Correctly handles missing backup files"
Open commit View diff
180 echo "✓ Correctly handles missing backup files"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
181
else
Open commit View diff
181 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
182
  echo "✗ Should return empty for missing files"
Open commit View diff
182 echo "✗ Should return empty for missing files"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
183
  exit 1
Open commit View diff
183 exit 1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
184
fi
Open commit View diff
184 fi
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
185
Open commit View diff
185
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
186
# Test 9: Error handling - Empty directory
Open commit View diff
186 # Test 9: Error handling - Empty directory
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
187
echo ""
Open commit View diff
187 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
188
echo "=== Test 9: Error handling - Empty directory ==="
Open commit View diff
188 echo "=== Test 9: Error handling - Empty directory ==="
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
189
mkdir -p "${TEST_DIR}/empty_dir"
Open commit View diff
189 mkdir -p "${TEST_DIR}/empty_dir"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
190
result=$(get_archive_info "backup_test" "${TEST_DIR}/empty_dir")
Open commit View diff
190 result=$(get_archive_info "backup_test" "${TEST_DIR}/empty_dir")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
191
if [[ -z "${result}" ]]; then
Open commit View diff
191 if [[ -z "${result}" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
192
  echo "✓ Correctly handles empty directories"
Open commit View diff
192 echo "✓ Correctly handles empty directories"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
193
else
Open commit View diff
193 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
194
  echo "✗ Should return empty for empty directories"
Open commit View diff
194 echo "✗ Should return empty for empty directories"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
195
  exit 1
Open commit View diff
195 exit 1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
196
fi
Open commit View diff
196 fi
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
197
Open commit View diff
197
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
198
# Test 10: Priority test - .tar.zst preferred over .tar.gz
Open commit View diff
198 # Test 10: Priority test - .tar.zst preferred over .tar.gz
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
199
echo ""
Open commit View diff
199 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
200
echo "=== Test 10: Format priority - .tar.zst preferred ==="
Open commit View diff
200 echo "=== Test 10: Format priority - .tar.zst preferred ==="
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
201
mkdir -p "${TEST_DIR}/both_formats"
Open commit View diff
201 mkdir -p "${TEST_DIR}/both_formats"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
202
touch "${TEST_DIR}/both_formats/backup_test.tar.gz"
Open commit View diff
202 touch "${TEST_DIR}/both_formats/backup_test.tar.gz"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
203
touch "${TEST_DIR}/both_formats/backup_test.tar.zst"
Open commit View diff
203 touch "${TEST_DIR}/both_formats/backup_test.tar.zst"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
204
result=$(get_archive_info "backup_test" "${TEST_DIR}/both_formats")
Open commit View diff
204 result=$(get_archive_info "backup_test" "${TEST_DIR}/both_formats")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
205
if [[ "${result}" =~ "zstd" ]]; then
Open commit View diff
205 if [[ "${result}" =~ "zstd" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
206
  echo "✓ Correctly prefers .tar.zst when both formats exist"
Open commit View diff
206 echo "✓ Correctly prefers .tar.zst when both formats exist"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
207
else
Open commit View diff
207 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
208
  echo "✗ Should prefer .tar.zst over .tar.gz"
Open commit View diff
208 echo "✗ Should prefer .tar.zst over .tar.gz"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
209
  exit 1
Open commit View diff
209 exit 1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
210
fi
Open commit View diff
210 fi
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
211
Open commit View diff
211
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
212
# Test 11: Large file compression test
Open commit View diff
212 # Test 11: Large file compression test
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
213
echo ""
Open commit View diff
213 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
214
echo "=== Test 11: Large file compression test ==="
Open commit View diff
214 echo "=== Test 11: Large file compression test ==="
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
215
mkdir -p "${TEST_DIR}/large_data"
Open commit View diff
215 mkdir -p "${TEST_DIR}/large_data"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
216
# Create ~10MB of compressible data (log-like content)
Open commit View diff
216 # Create ~10MB of compressible data (log-like content)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
217
for i in {1..50000}; do
Open commit View diff
217 for i in {1..50000}; do
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
218
  echo "[$(date '+%Y-%m-%d %H:%M:%S')] INFO: Processing email message $i from [email protected] to [email protected]" >> "${TEST_DIR}/large_data/maillog.txt"
Open commit View diff
218 echo "[$(date '+%Y-%m-%d %H:%M:%S')] INFO: Processing email message $i from [email protected] to [email protected]" >> "${TEST_DIR}/large_data/maillog.txt"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
219
  echo "[$(date '+%Y-%m-%d %H:%M:%S')] DEBUG: SMTP connection established from 192.168.1.$((i % 255))" >> "${TEST_DIR}/large_data/maillog.txt"
Open commit View diff
219 echo "[$(date '+%Y-%m-%d %H:%M:%S')] DEBUG: SMTP connection established from 192.168.1.$((i % 255))" >> "${TEST_DIR}/large_data/maillog.txt"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
220
done 2>/dev/null
Open commit View diff
220 done 2>/dev/null
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
221
Open commit View diff
221
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
222
# Get size (portable: works on Linux and macOS)
Open commit View diff
222 # Get size (portable: works on Linux and macOS)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
223
if du --version 2>/dev/null | grep -q GNU; then
Open commit View diff
223 if du --version 2>/dev/null | grep -q GNU; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
224
  original_size=$(du -sb "${TEST_DIR}/large_data" | cut -f1)
Open commit View diff
224 original_size=$(du -sb "${TEST_DIR}/large_data" | cut -f1)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
225
else
Open commit View diff
225 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
226
  # macOS
Open commit View diff
226 # macOS
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
227
  original_size=$(find "${TEST_DIR}/large_data" -type f -exec stat -f%z {} \; | awk '{sum+=$1} END {print sum}')
Open commit View diff
227 original_size=$(find "${TEST_DIR}/large_data" -type f -exec stat -f%z {} \; | awk '{sum+=$1} END {print sum}')
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
228
fi
Open commit View diff
228 fi
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
229
echo "  Original data size: $(echo "scale=2; ${original_size} / 1024 / 1024" | bc) MB"
Open commit View diff
229 echo " Original data size: $(echo "scale=2; ${original_size} / 1024 / 1024" | bc) MB"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
230
Open commit View diff
230
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
231
# Backup with zstd
Open commit View diff
231 # Backup with zstd
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
232
docker run --rm \
Open commit View diff
232 docker run --rm \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
233
  -w /data \
Open commit View diff
233 -w /data \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
234
  -v "${TEST_DIR}/large_data:/data:ro" \
Open commit View diff
234 -v "${TEST_DIR}/large_data:/data:ro" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
235
  -v "${TEST_DIR}/backup_large_zst:/backup" \
Open commit View diff
235 -v "${TEST_DIR}/backup_large_zst:/backup" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
236
  mailcow-backup-test \
Open commit View diff
236 mailcow-backup-test \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
237
  /bin/tar --use-compress-program="zstd --rsyncable -T${THREADS}" \
Open commit View diff
237 /bin/tar --use-compress-program="zstd --rsyncable -T${THREADS}" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
238
  -cvpf /backup/backup_large.tar.zst . \
Open commit View diff
238 -cvpf /backup/backup_large.tar.zst . \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
239
  > /dev/null 2>&1
Open commit View diff
239 > /dev/null 2>&1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
240
Open commit View diff
240
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
241
# Backup with pigz
Open commit View diff
241 # Backup with pigz
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
242
docker run --rm \
Open commit View diff
242 docker run --rm \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
243
  -w /data \
Open commit View diff
243 -w /data \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
244
  -v "${TEST_DIR}/large_data:/data:ro" \
Open commit View diff
244 -v "${TEST_DIR}/large_data:/data:ro" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
245
  -v "${TEST_DIR}/backup_large_gz:/backup" \
Open commit View diff
245 -v "${TEST_DIR}/backup_large_gz:/backup" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
246
  mailcow-backup-test \
Open commit View diff
246 mailcow-backup-test \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
247
  /bin/tar --use-compress-program="pigz --rsyncable -p ${THREADS}" \
Open commit View diff
247 /bin/tar --use-compress-program="pigz --rsyncable -p ${THREADS}" \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
248
  -cvpf /backup/backup_large.tar.gz . \
Open commit View diff
248 -cvpf /backup/backup_large.tar.gz . \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
249
  > /dev/null 2>&1
Open commit View diff
249 > /dev/null 2>&1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
250
Open commit View diff
250
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
251
zst_large_size=$(stat -f%z "${TEST_DIR}/backup_large_zst/backup_large.tar.zst" 2>/dev/null || stat -c%s "${TEST_DIR}/backup_large_zst/backup_large.tar.zst" 2>/dev/null || echo "0")
Open commit View diff
251 zst_large_size=$(stat -f%z "${TEST_DIR}/backup_large_zst/backup_large.tar.zst" 2>/dev/null || stat -c%s "${TEST_DIR}/backup_large_zst/backup_large.tar.zst" 2>/dev/null || echo "0")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
252
gz_large_size=$(stat -f%z "${TEST_DIR}/backup_large_gz/backup_large.tar.gz" 2>/dev/null || stat -c%s "${TEST_DIR}/backup_large_gz/backup_large.tar.gz" 2>/dev/null || echo "0")
Open commit View diff
252 gz_large_size=$(stat -f%z "${TEST_DIR}/backup_large_gz/backup_large.tar.gz" 2>/dev/null || stat -c%s "${TEST_DIR}/backup_large_gz/backup_large.tar.gz" 2>/dev/null || echo "0")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
253
Open commit View diff
253
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
254
if [[ ${zst_large_size} -gt 0 ]] && [[ ${gz_large_size} -gt 0 ]]; then
Open commit View diff
254 if [[ ${zst_large_size} -gt 0 ]] && [[ ${gz_large_size} -gt 0 ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
255
  large_improvement=$(echo "scale=2; (${gz_large_size} - ${zst_large_size}) * 100 / ${gz_large_size}" | bc)
Open commit View diff
255 large_improvement=$(echo "scale=2; (${gz_large_size} - ${zst_large_size}) * 100 / ${gz_large_size}" | bc)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
256
Open commit View diff
256
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
257
  echo "  .tar.gz compressed: $(echo "scale=2; ${gz_large_size} / 1024 / 1024" | bc) MB"
Open commit View diff
257 echo " .tar.gz compressed: $(echo "scale=2; ${gz_large_size} / 1024 / 1024" | bc) MB"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
258
  echo "  .tar.zst compressed: $(echo "scale=2; ${zst_large_size} / 1024 / 1024" | bc) MB"
Open commit View diff
258 echo " .tar.zst compressed: $(echo "scale=2; ${zst_large_size} / 1024 / 1024" | bc) MB"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
259
  echo "  Improvement: ${large_improvement}% smaller with zstd"
Open commit View diff
259 echo " Improvement: ${large_improvement}% smaller with zstd"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
260
else
Open commit View diff
260 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
261
  echo "  ✗ Failed to get file sizes"
Open commit View diff
261 echo " ✗ Failed to get file sizes"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
262
  exit 1
Open commit View diff
262 exit 1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
263
fi
Open commit View diff
263 fi
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
264
Open commit View diff
264
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
265
if [[ $(echo "${large_improvement} > 0" | bc) -eq 1 ]]; then
Open commit View diff
265 if [[ $(echo "${large_improvement} > 0" | bc) -eq 1 ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
266
  echo "✓ zstd provides better compression on realistic data"
Open commit View diff
266 echo "✓ zstd provides better compression on realistic data"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
267
else
Open commit View diff
267 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
268
  echo "⚠ zstd compression similar or worse than gzip (unusual but not critical)"
Open commit View diff
268 echo "⚠ zstd compression similar or worse than gzip (unusual but not critical)"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
269
fi
Open commit View diff
269 fi
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
270
Open commit View diff
270
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
271
# Test 12: Thread scaling test
Open commit View diff
271 # Test 12: Thread scaling test
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
272
echo ""
Open commit View diff
272 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
273
echo "=== Test 12: Multi-threading verification ==="
Open commit View diff
273 echo "=== Test 12: Multi-threading verification ==="
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
274
# This test verifies that different thread counts work (not measuring speed difference)
Open commit View diff
274 # This test verifies that different thread counts work (not measuring speed difference)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
275
for thread_count in 1 4; do
Open commit View diff
275 for thread_count in 1 4; do
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
276
  THREADS=${thread_count}
Open commit View diff
276 THREADS=${thread_count}
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
277
  result=$(get_archive_info "backup_test" "${TEST_DIR}/backup_zst")
Open commit View diff
277 result=$(get_archive_info "backup_test" "${TEST_DIR}/backup_zst")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
278
  if [[ "${result}" =~ "-T${thread_count}" ]]; then
Open commit View diff
278 if [[ "${result}" =~ "-T${thread_count}" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
279
    echo "✓ Thread count ${thread_count} correctly configured"
Open commit View diff
279 echo "✓ Thread count ${thread_count} correctly configured"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
280
  else
Open commit View diff
280 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
281
    echo "✗ Thread count not properly applied"
Open commit View diff
281 echo "✗ Thread count not properly applied"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
282
    exit 1
Open commit View diff
282 exit 1
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
283
  fi
Open commit View diff
283 fi
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
284
done
Open commit View diff
284 done
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
285
Open commit View diff
285
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
286
echo ""
Open commit View diff
286 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
287
echo "=== All tests passed! ==="
Open commit View diff
287 echo "=== All tests passed! ==="
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
288
echo ""
Open commit View diff
288 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
289
echo "Summary:"
Open commit View diff
289 echo "Summary:"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
290
echo "  ✓ zstd compression working"
Open commit View diff
290 echo " ✓ zstd compression working"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
291
echo "  ✓ pigz compression working (legacy)"
Open commit View diff
291 echo " ✓ pigz compression working (legacy)"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
292
echo "  ✓ zstd decompression working"
Open commit View diff
292 echo " ✓ zstd decompression working"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
293
echo "  ✓ pigz decompression working (backward compatible)"
Open commit View diff
293 echo " ✓ pigz decompression working (backward compatible)"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
294
echo "  ✓ Archive detection working"
Open commit View diff
294 echo " ✓ Archive detection working"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
295
echo "  ✓ Content integrity verified"
Open commit View diff
295 echo " ✓ Content integrity verified"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
296
echo "  ✓ Format priority correct (.tar.zst preferred)"
Open commit View diff
296 echo " ✓ Format priority correct (.tar.zst preferred)"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
297
echo "  ✓ Error handling for missing files"
Open commit View diff
297 echo " ✓ Error handling for missing files"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
298
echo "  ✓ Error handling for empty directories"
Open commit View diff
298 echo " ✓ Error handling for empty directories"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
299
echo "  ✓ Multi-threading configuration verified"
Open commit View diff
299 echo " ✓ Multi-threading configuration verified"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
300
echo "  ✓ Large file compression: ${large_improvement}% improvement"
Open commit View diff
300 echo " ✓ Large file compression: ${large_improvement}% improvement"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
301
echo "  ✓ Small file compression: ${improvement}% improvement"
Open commit View diff
301 echo " ✓ Small file compression: ${improvement}% improvement"