Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tar cannot archive socket file #2

Open
myroad94 opened this issue Dec 6, 2020 · 0 comments
Open

tar cannot archive socket file #2

myroad94 opened this issue Dec 6, 2020 · 0 comments

Comments

@myroad94
Copy link

myroad94 commented Dec 6, 2020

Env:
Lineageos 17.1 2020-11-30 (Android 10)
tar version:

1|OnePlus3T:/ $ tar --version
toybox 0.8.0-android

Oneplus3T

Issue:
I had an openvpn app that had a socket file in its data directory.
tar could not archive it and stopped in error with. Example to reproduce just with tar:

130|OnePlus3T:/ # tar -cf /sdcard/test.tar /dev/socket/logd
removing leading '/' from member names
tar: unknown file type '140000'
1|OnePlus3T:/ # echo $?
1

Workaround: I uninstalled openvpn before doing backup all
Solution: socket file are not supposed to be archived. Maybe use an optional better tar:

1|OnePlus3T:/ $ /sbin/.magisk/busybox/tar --version
tar (busybox) 1.31.1-Magisk
1|OnePlus3T:/ # /sbin/.magisk/busybox/tar -cf /sdcard/test.tar /dev/socket/logd
tar: removing leading '/' from member names
tar: /dev/socket/logd: socket ignored
OnePlus3T:/ # echo $?
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant