Skip to content

Commit 2bff928

Browse files
committed
fix: targz compression errors out
1 parent eeee620 commit 2bff928

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/bak

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,16 @@ function main {
162162
do
163163
compress_command+=" --exclude $exclude_pattern"
164164
done
165-
compress_command+=" --create --force-local --gzip -f"
166-
compress_command+=" '$backup_dir/$file_name' ${files_to_backup[@]}"
165+
compress_command+=" --create --gzip -f"
166+
compress_command+=" $backup_dir/$file_name ${files_to_backup[@]}"
167167
;;
168168
tar-xz)
169169
compress_command="tar"
170170
for exclude_pattern in "${files_to_exclude[@]}"
171171
do
172172
compress_command+=" --exclude $exclude_pattern"
173173
done
174-
compress_command+=" --create --force-local --xz -f"
174+
compress_command+=" --create --xz -f"
175175
compress_command+=" $backup_dir/$file_name ${files_to_backup[@]}"
176176
;;
177177
tar-zst)
@@ -180,7 +180,7 @@ function main {
180180
do
181181
compress_command+=" --exclude $exclude_pattern"
182182
done
183-
compress_command+=" --create --force-local --zstd -f"
183+
compress_command+=" --create --zstd -f"
184184
compress_command+=" $backup_dir/$file_name ${files_to_backup[@]}"
185185
;;
186186
tar-bz)
@@ -189,7 +189,7 @@ function main {
189189
do
190190
compress_command+=" --exclude $exclude_pattern"
191191
done
192-
compress_command+=" --create --force-local --bzip2 -f"
192+
compress_command+=" --create --bzip2 -f"
193193
compress_command+=" $backup_dir/$file_name ${files_to_backup[@]}"
194194
;;
195195
zip)

0 commit comments

Comments
 (0)