tasket / wyng-backup

Fast backups for logical volumes & disk images
GNU General Public License v3.0
245 stars 16 forks source link

Fix little incompatibility with busybox #188

Closed tlaurion closed 4 months ago

tlaurion commented 5 months ago
--- /home/user/wyng.orig 2024-05-01 21:07:11.759288927 -0400
+++ /sbin/wyng 2024-05-01 21:07:54.966291243 -0400
@@ -2576,7 +2576,7 @@
     return

 do_exec([[CP.tar,"-cf","-","--no-recursion","--verbatim-files-from","--files-from", "-"],
-         dest.run_args([dest.cd + "  && tar --no-same-owner -xf -"]
+         dest.run_args([dest.cd + "  && tar -o -xf -"]
                             + [" && mv '"+x+ext+"' '"+x+"'" for x in update_list if ext])
         ], inlines=[x+ext for x in update_list], cwd=lcd)

on busybox, there is no --no-same-owner , but there is -o on both:

man tar:

-o When creating, same as --old-archive. When extracting, same as --no-same-owner.

tar --hel on busybox:

-o Don't restore user:group

tasket commented 5 months ago

OK, please submit as PR in the 08wip branch.