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

custom archive and restore commands #156

Open
RekGRpth opened this issue Apr 24, 2021 · 2 comments
Open

custom archive and restore commands #156

RekGRpth opened this issue Apr 24, 2021 · 2 comments

Comments

@RekGRpth
Copy link

How I can use custom archive and restore commands, like gzip and gunzip?

@ljluestc
Copy link

# Custom archive command (backup)
ARCHIVE_COMMAND = 'gzip -c < %p > /path/to/backup/archive/%f'

# Custom restore command
RESTORE_COMMAND = 'gunzip -c /path/to/backup/archive/%f > %p'

@RekGRpth
Copy link
Author

Custom archive command (backup)

ARCHIVE_COMMAND = 'gzip -c < %p > /path/to/backup/archive/%f'

Custom restore command

RESTORE_COMMAND = 'gunzip -c /path/to/backup/archive/%f > %p'

Have you tried using this yourself with pg_rman?

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