Skip to content

Commit dbb9c6e

Browse files
fix: dont use patterns for dev, sys, proc.
This fixes issues with compression in termux with some devices:
1 parent 90cd71a commit dbb9c6e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

plugins/gz-packer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ target=$1
44

55
tar \
66
--exclude={/data,/apex,/vendor,/system,/sdcard} \
7-
--exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/mnt/*,/media/*,/lost+found/*} \
7+
--exclude={/dev,/proc,/sys,/tmp/*,/mnt/*,/media/*,/lost+found/*} \
88
--exclude="*.l2s.*" \
99
--exclude=/${0} \
1010
--exclude="/${target}.tar.gz" \

plugins/j-packer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ target=$1
44

55
tar \
66
--exclude={/data,/apex,/vendor,/system,/sdcard} \
7-
--exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/mnt/*,/media/*,/lost+found/*} \
7+
--exclude={/dev,/proc,/sys,/tmp/*,/mnt/*,/media/*,/lost+found/*} \
88
--exclude="*.l2s.*" \
99
--exclude=/${0} \
1010
--exclude="/${target}.tar.xz" \

plugins/lz-packer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ target=$1
44

55
tar \
66
--exclude={/data,/apex,/vendor,/system,/sdcard} \
7-
--exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/mnt/*,/media/*,/lost+found/*} \
7+
--exclude={/dev,/proc,/sys,/tmp/*,/mnt/*,/media/*,/lost+found/*} \
88
--exclude="*.l2s.*" \
99
--exclude=/${0} \
1010
--exclude="/${target}.tar.lz" \

plugins/zst-packer.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ target=$1
44

55
tar \
66
--exclude={/data,/apex,/vendor,/system,/sdcard} \
7-
--exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/mnt/*,/media/*,/lost+found/*} \
7+
--exclude={/dev,/proc,/sys,/tmp/*,/mnt/*,/media/*,/lost+found/*} \
88
--exclude="*.l2s.*" \
99
--exclude=/${0} \
1010
--exclude="/${target}.zst" \
@@ -13,4 +13,4 @@ tar \
1313
-cpf \
1414
- / -P \
1515
| pv -s $(($(du -skx / | awk '{print $1}') * 1024)) |\
16-
zstd > /"${target}".zst
16+
zstd > /"${target}".tar.zst

0 commit comments

Comments
 (0)