add "Exclude" option for tar backup #83

Closed
tkapluk opened this Issue Feb 21, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Show comment
Hide comment
@sebastianfeldmann

sebastianfeldmann Feb 21, 2017

Owner

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

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

sebastianfeldmann commented Feb 21, 2017

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

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

This comment has been minimized.

Show comment
Hide comment
@sebastianfeldmann

sebastianfeldmann Feb 21, 2017

Owner

adding the --exclude option is in progress

adding the --exclude option is in progress

@sebastianfeldmann

This comment has been minimized.

Show comment
Hide comment
@sebastianfeldmann

sebastianfeldmann Feb 21, 2017

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"

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

This comment has been minimized.

Show comment
Hide comment
@tkapluk

tkapluk Feb 22, 2017

Thanks! Works fine.

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