Skip to content

Commit

Permalink
fix: dont use patterns for dev, sys, proc.
Browse files Browse the repository at this point in the history
This fixes issues with compression in termux with some devices:
  • Loading branch information
SaicharanKandukuri committed Mar 29, 2024
1 parent 90cd71a commit dbb9c6e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugins/gz-packer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion plugins/j-packer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion plugins/lz-packer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
4 changes: 2 additions & 2 deletions plugins/zst-packer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand All @@ -13,4 +13,4 @@ tar \
-cpf \
- / -P \
| pv -s $(($(du -skx / | awk '{print $1}') * 1024)) |\
zstd > /"${target}".zst
zstd > /"${target}".tar.zst

0 comments on commit dbb9c6e

Please sign in to comment.