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

add "Exclude" option for tar backup #83

Closed
tkapluk opened this issue Feb 21, 2017 · 5 comments
Closed

add "Exclude" option for tar backup #83

tkapluk opened this issue Feb 21, 2017 · 5 comments

Comments

@tkapluk
Copy link

tkapluk commented Feb 21, 2017

Please, add exclude option for backup directories ( tar).

We have folders that don't need to backup: cache, sessions, etc.
Also I have error in tar backups:

Exception 'phpbu\App\Exception' with message 'tar failed: /usr/bin/tar: source/var/session: file changed as we read it ' in phar:///usr/local/bin/phpbu/Backup/Source/Tar.php:112

phpbu 4.0.3

@sebastianfeldmann
Copy link
Owner

sebastianfeldmann commented Feb 21, 2017

Hi,
you can avoid the read errors by adding the ignoreFailedRead option.

<option name="ignoreFailedRead" value="true"/>

@sebastianfeldmann
Copy link
Owner

adding the --exclude option is in progress

@sebastianfeldmann
Copy link
Owner

I just released phpbu 4.0.4 with the new tar --exclude option

For example if you want to exclude foo/bar and fiz/baz from your tar use something like this.

<option name="exclude" value="foo/bar,fiz/baz"

@tkapluk
Copy link
Author

tkapluk commented Feb 22, 2017

Thanks! Works fine.

@planetahuevo
Copy link
Contributor

@sebastianfeldmann Can we add 2 options for exclude?
I have two list of exclusions to add to the tar. I wonder if that will work (it does on tar).

Thanks!

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

No branches or pull requests

3 participants