From dbb9c6e9359e4975174e963960b76cd3db805fce Mon Sep 17 00:00:00 2001 From: saicharankandukuri Date: Fri, 29 Mar 2024 10:25:28 +0530 Subject: [PATCH] fix: dont use patterns for dev, sys, proc. This fixes issues with compression in termux with some devices: --- plugins/gz-packer.sh | 2 +- plugins/j-packer.sh | 2 +- plugins/lz-packer.sh | 2 +- plugins/zst-packer.sh | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/gz-packer.sh b/plugins/gz-packer.sh index d359f3f..72e7be1 100755 --- a/plugins/gz-packer.sh +++ b/plugins/gz-packer.sh @@ -4,7 +4,7 @@ target=$1 tar \ --exclude={/data,/apex,/vendor,/system,/sdcard} \ - --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/mnt/*,/media/*,/lost+found/*} \ + --exclude={/dev,/proc,/sys,/tmp/*,/mnt/*,/media/*,/lost+found/*} \ --exclude="*.l2s.*" \ --exclude=/${0} \ --exclude="/${target}.tar.gz" \ diff --git a/plugins/j-packer.sh b/plugins/j-packer.sh index 31f0406..452c225 100755 --- a/plugins/j-packer.sh +++ b/plugins/j-packer.sh @@ -4,7 +4,7 @@ target=$1 tar \ --exclude={/data,/apex,/vendor,/system,/sdcard} \ - --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/mnt/*,/media/*,/lost+found/*} \ + --exclude={/dev,/proc,/sys,/tmp/*,/mnt/*,/media/*,/lost+found/*} \ --exclude="*.l2s.*" \ --exclude=/${0} \ --exclude="/${target}.tar.xz" \ diff --git a/plugins/lz-packer.sh b/plugins/lz-packer.sh index 0b9deb6..5603e38 100755 --- a/plugins/lz-packer.sh +++ b/plugins/lz-packer.sh @@ -4,7 +4,7 @@ target=$1 tar \ --exclude={/data,/apex,/vendor,/system,/sdcard} \ - --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/mnt/*,/media/*,/lost+found/*} \ + --exclude={/dev,/proc,/sys,/tmp/*,/mnt/*,/media/*,/lost+found/*} \ --exclude="*.l2s.*" \ --exclude=/${0} \ --exclude="/${target}.tar.lz" \ diff --git a/plugins/zst-packer.sh b/plugins/zst-packer.sh index 804e591..1e23ba0 100755 --- a/plugins/zst-packer.sh +++ b/plugins/zst-packer.sh @@ -4,7 +4,7 @@ target=$1 tar \ --exclude={/data,/apex,/vendor,/system,/sdcard} \ - --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/mnt/*,/media/*,/lost+found/*} \ + --exclude={/dev,/proc,/sys,/tmp/*,/mnt/*,/media/*,/lost+found/*} \ --exclude="*.l2s.*" \ --exclude=/${0} \ --exclude="/${target}.zst" \ @@ -13,4 +13,4 @@ tar \ -cpf \ - / -P \ | pv -s $(($(du -skx / | awk '{print $1}') * 1024)) |\ - zstd > /"${target}".zst + zstd > /"${target}".tar.zst