wal-e | Continuous Archiving for Postgres | Cloud Storage library
kandi X-RAY | wal-e Summary
kandi X-RAY | wal-e Summary
Continuous Archiving for Postgres
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Configure the Backup C extension
- Generate a configuration hint
- Format a log record
- Run external programs
- Partition a PostgreSQL directory
- Segment a list of tar members into partitions
- Ensures that a directory does not exist
- Wrapper for lzop - retrieve
- Convert a URI to a key
- Extract a tarball from a file object
- Uploads a file to the given URI
- Run psql check
- Build the argument parser
- Iterate over the tasks in the queue
- Read data from the stream
- Create a CallInfo object from a bucket name
- Creates a monkey patch for ssl
- Return a connection to S3
- Download a wal
- Create directories for a segment
- Uploads a wal archive to the server
- Restore a wal
- Fetch database from database
- Uploads PostgreSQL
- Configure logging
- Delete num_to_retain backups
wal-e Key Features
wal-e Examples and Code Snippets
WALE_AWS_ACCESS_KEY_ID`
WALE_AWS_SECRET_ACCESS_KEY`
WALE_S3_PREFIX="s3:///"
WALE_AWS_REGION=eu-west-1
Community Discussions
Trending Discussions on wal-e
QUESTION
I've got a remote ever growing TimescaleDb database. I would like to keep only the most recent entries in the that Db, backing up the rest of the data to local drive, to achieve constant Db size on the server.
I thought of making full pg_dump
backups before retaining and rebuilding the base locally from these backups.
Also, I could use WAL-E
to create a continuous copy, somehow ignoring the deletions on the remote database.
What would be the most efficient way to achieve that?
...ANSWER
Answered 2020-Jan-26 at 18:04(TimescaleDB person here)
There are two main approaches here:
- Use a backup system like WAL-E or pgBackRest to continuously replicate data to some other source (like S3).
- Integrate your use of TimescaleDB's
drop_chunks
with your data extraction process.
The answer somewhat depends on how complex your data/database is.
If you are looking to primary archive your data in a single hypertable, I would recommend the latter: Use show_chunks
to determine which chunks are over a certain range, compute a select over their range and write the data wherever, and then execute drop_chunks
over the same range.
QUESTION
I am new to postgresql. I've connected to my demo database with psycopg2 and inserted data with python faker. I want to take incremental backup with the tool WAL-E and want to see how it actually works. But the few tutorials aren't helping that much as they're not for naive users.
Can someone help explaining the steps simply how to backup data with WAL-E? That would be a great help ! I'm using psql 10.4 in Ubuntu 18.04.
Thanks
...ANSWER
Answered 2018-Dec-04 at 08:51Install Python & Dependencies
QUESTION
I was setting up scheduled backup of my postgresql database on my server using wal-e. I was following this link. (Just have a look at the article from Step 3)
When I execute the below command after initial setup .
sudo -u postgres /usr/bin/envdir /etc/wal-e.d/env /usr/local/bin/wal-e backup-push /var/lib/postgresql/9.5/main
.
I get following error:-
...ANSWER
Answered 2019-Feb-04 at 06:14Faced the same issue. Your postgres user is not able to access the distribution packages.
Try running the below command. It should resolve the issue.
QUESTION
Im trying to run a package wal-e
which I have installed as user root with sudo python3 -m pip install wal-e[aws,azure,google,swift]
.
I can run this command perfectly as user root
using envdir /etc/wal-e.d/env wal-e backup-fetch /var/lib/postgresql/9.6/main LATEST
.
However, when I sudo su - postgres
and then run envdir /etc/wal-e.d/env wal-e backup-fetch /var/lib/postgresql/9.6/main LATEST
, I get the error
ANSWER
Answered 2017-Sep-22 at 11:08I had to run a strict setup process for wal-e in order for the package to function properly.
Virtually what it boiled down to was installing all necessary dependencies on the machine that I was working with before installing and creating the user postgres
. If the user was created before all the dependencies were installed, I got permissions errors.
QUESTION
I am getting the following error on executing the backup-push command:
...ANSWER
Answered 2017-Jun-15 at 07:37I tried to reproduce your issue successfully, and I reviewed the source code of the wal-e
version 1.0.3
, then I discovered the issue was caused by the wal-e
version 1.0.3
actually required the azure-storage
version less than 0.20.3
, but installed the latest azure-storage
version 0.34.3
when you were installing via pip3 install wal-e[azure]
. Please check your current version of azure-storage
via pip3 freeze | grep azure-storage
.
So there are two solution for resolving the issue, as below.
- Downgrade the
azure-storage
version to0.20.3
viapip3 install azure-storage==0.20.3
. - Or just upgrade the
wal-e
version to1.1.0b1
which required the latestazure-storage
version and be compatible with the old version, viapip3 install wal-e==1.1.0b1
.
Hope it helps.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install wal-e
You can use wal-e like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page