wp-media / backwpup

BackWPup - WordPress Backup Plugin
https://backwpup.com
GNU General Public License v2.0
88 stars 35 forks source link

"tar" long filename support #54

Closed mundschenk-at closed 5 years ago

mundschenk-at commented 6 years ago

BackupWP_Create_Archive::tar_file should support the GNU long filename extension (instead of being limited to 99 characters). Using the "zip" format as a workaround is not feasible for image backups, as it takes a very long time without any benefits (double compression).

widoz commented 5 years ago

Hi @mundschenk-at tar archive have limitation in terms of maximum length for paths. At the time tar was implemented there was a limitation of 99 characters, see the man page https://www.gnu.org/software/tar/manual/html_section/tar_67.html

mundschenk-at commented 5 years ago

@widoz Well yes, that's why I created this feature request.

Everybody uses GNU tar nowadays, and gnu format supports longer filenames. Alternatively, the posix format would work as well - though I'm not sure how widespread support for that is. Fortunately, it contains a backwards-compatible layer, so it could be read as a ustar archive (which is what you are creating now).