Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

exclude full directory listing from archive tar.gz #363

Open
gitmstoute opened this issue Mar 8, 2019 · 2 comments
Open

exclude full directory listing from archive tar.gz #363

gitmstoute opened this issue Mar 8, 2019 · 2 comments

Comments

@gitmstoute
Copy link
Contributor

When I extract a backup from my archive, the result includes the full path to backup_dir where the backup was initially created. In my case:
backup_dir = /var/backups/autoxtrabackup/current_backup

The expanded archive includes the /var/backups/... path:
./var/backups/autoxtrabackup/current_backup/

It would be preferable if the archive only included current_backup/ , so it would expand to:
./current_backup/

@ShahriyarR
Copy link
Owner

Hi, I would like to ask what kind of difficulties this extracting gave you?
And also maybe you are interested to send PR for this.

@gitmstoute
Copy link
Contributor Author

@ShahriyarR for me it was just convenience, if I'm not using autoxtrabackup to do a restore there is less typing.
I guess there is also a small risk if a user is at / and extracts an archived backup, it could jumble the contents of the real current_backup.

Yes I'll send a PR when I have time :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants