-
-
Notifications
You must be signed in to change notification settings - Fork 109
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 source archive removeDir
is not being used
#51
Comments
Hi, The next major version of phpbu (3.0) will feature a Maybe then I find the courage to implement this feature ;) |
Good thinking, can't be to careful when running |
When backing up directories using the 'Tar' source it is now possible to add an option named 'removeSourceDir' that will result in deleting the source directory after compressing it. WARNING: Be careful with this option, misusage under a privileged user like 'root' could lead to severe data loss.
I activated the |
I will try to update the Laravel integration to version ~3.1 in the next couple of days so you can benefit from this changes. |
Sweet man, thanks! No rush on the Laravel integration. I'm using your package directly using the |
\phpbu\App\Backup\Source\Tar
has aremoveDir
setting in itssetup
method to specify if the source directory should be removed after archiving, but it is not being used anywhere.Shouldn't this be passed to the executable's (
\phpbu\App\Cli\Executable\Tar
)removeSourceDirectory
method? See https://github.com/sebastianfeldmann/phpbu/blob/master/src/Backup/Source/Tar.php#L131.The text was updated successfully, but these errors were encountered: