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 · 4 comments
Closed

add "Exclude" option for tar backup #83

tkapluk opened this issue Feb 21, 2017 · 4 comments
Assignees

Comments

@tkapluk
Copy link

@tkapluk 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 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

@sebastianfeldmann sebastianfeldmann commented Feb 21, 2017

adding the --exclude option is in progress

sebastianfeldmann added a commit that referenced this issue Feb 21, 2017
@sebastianfeldmann
Copy link
Owner

@sebastianfeldmann sebastianfeldmann commented Feb 21, 2017

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 tkapluk commented Feb 22, 2017

Thanks! Works fine.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.