Coder Social home page Coder Social logo

p-bizouard / cloudbackup Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 1.11 MB

Orchestrateur de sauvegardes diverses : Instances Openstack, Bases de données, fichiers distants ou locaux. Sauvegarde via Restic et notifications en cas d'erreurs.

License: MIT License

Shell 0.25% PHP 86.82% Dockerfile 1.77% Smarty 0.76% Twig 8.33% JavaScript 1.95% SCSS 0.11% CSS 0.02%
backup openstack symfony

cloudbackup's Issues

Rclone - Allow to continue workflow by ignoring lines from stderr with a regex

  • Add a field in BackupConfiguration to set a regex to ignore errors dumped on stderr
  • If the field is valued and the error output is empty after ignoring lines, the command should be considered as success

It will allow to backup object storages with files name > 255 chars on a filesystem that does not support this, and consider the backup as a success even if few files were not backuped

Velero restic check - find a specific volume

All velero restic volume backup from a same namespace are saved in one restic repository. So if we have multiple pvc, restic snapshots --latest may return more than one result (at leat one by pvc).

We want to filter the result based on the volume name, ex: restic snapshots --latest 1 --tag volume=php-uploads-pvc --json

Add custom restic argument in the BackupConfiguration ?
Add jq or php filter ?

Size check - Throw an error if the minimum expected backup size is way lighter than real

Sometime we create a backup configuration with empty database, repository, ... so we set to 0 octet, but when we go live we do not remember to set a real value. And the data will growth overtime, so if a backup is not full for some reason, we may not be alerted if the minimum expected size is not updated.

  • Checkbox to ignore the error on the BackupConfiguration
  • Visual error on dashboard and backup
  • How much lighter should throw an error ? Should it be configurable on the BackupConfiguration ?

Rclone "Forget" step throws errors on non-existent backup directory

The forget command rclone delete --rmdirs --min-age "${KEEP_DAILY}d" "${REMOTE_STORAGE_BACKUP}" --config "${RCLONE_CONFIG}" throws errors when ${REMOTE_STORAGE_BACKUP} is non-existent.

Error executing backup - rclone delete - 2023/06/01 14:00:08 ERROR : : error listing: directory not found
2023/06/01 14:00:08 ERROR : Attempt 1/3 failed with 2 errors and: directory not found
2023/06/01 14:00:08 ERROR : : error listing: directory not found
2023/06/01 14:00:08 ERROR : Attempt 2/3 failed with 2 errors and: directory not found
2023/06/01 14:00:08 ERROR : : error listing: directory not found
2023/06/01 14:00:08 ERROR : Attempt 3/3 failed with 2 errors and: directory not found
2023/06/01 14:00:08 Failed to delete with 2 errors: last error was: directory not found

Check before executing the command with rclone lsd and expect to find a backup directory in stdout ?

Velero restic backup check - Get latest backup

When a backup of the same volume is done, it saves the host path. So if the pod start on 2 different nodes, it will create two different snapshots in the history, so --latest 1 may return more than 1 result.

We should sort the resulted array based on the timestamp, with jq or in php

restic snapshots --latest 1 --json | jq 'sort_by(.time) | reverse'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.