Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

315
Visualizações
How to restore redshift data not present in a previous snapshot?

Currently we have automated manual backup of redshift data every 1 hour. Assuming a cluster goes down and the data restored from a snapshot, I also want to restore the data not present in the snapshot.

P.S: complete data is present in s3 before we move to redshift.

How can I approach this problem? So that I get remaining data from my s3 to redshift after snapshot restore.

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

You would need to have some indicator in both Redshift and S3 so that you know which data is loaded.

For example, if your data on S3 is partitioned by Year, Month, Day and Hour like so:

s3://my_bucket/my_prefix/year=2017/month=3/day=11/hour=10/my_file_parts.pt001.gz

Then you want to have Year, Month, Day and Hour columns in you Redshift tables so you can find the max partition that was loaded.

SELECT  MAX(year||month||day||hour) FROM my_table

You can then reload any partitions not currently present in Redshift.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda