Support non-Gnu tar
Bug #278478 reported by
Alexander Skwar
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mylvmbackup |
Fix Released
|
Medium
|
Lenz Grimmer |
Bug Description
Right now, mylvmbackup calls:
$tar $tararg $tarballtmp -C $topmountdir $mountdir_
With "-C", GNU tar can change the directory prior to creating the tar.
Sadly, only GNU tar supports that. The portable way is to do "cd $topmountdir ; $tar ....".
The default $tararg is set to "cvfz". With "z", gzip compression is done.
That's also a Gnuism. The portable way is to do "tar cvf - .... | gzip -> file.tar.gz".
It would be good, if those Gnuism wouldn't be done.
I'll publish a branch shortly, which fixes this.
Related branches
lp:~a.skwar/mylvmbackup/non-gnu
Merged
into
lp:mylvmbackup
- No reviews requested
To post a comment you must log in.
Thanks a lot for your report and the contribution! I merged the changes from the non-gnu repository into the trunk, the change will be part of the next release. Please test!