-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
[Feature request] Backup from stdin #8
Comments
Same with mongodump, might be usefull yes. Altouhgh at least with mongo it's not seen as the reccomended way to go about it. |
@EliotBerriot , your backup journey article took me here and I'm subscribing to this issue :) At the risk of hijacking the discussion here, I'd like to ask if you're currently using your own tool, savior, in conjunction with autorestic? |
I will do some testing this WE (hopefully I don't forget xD) |
@bthj no I've completely dropped it, I've been using https://github.com/cupcakearmy/autorestic#before--after-hooks (dump in a before hook, remove the dump in the after hook, backup the dump) as a workaround until we can pipe backups directly to stdin.
@cupcakearmy yeah, wy first attempts at this (back in december) got stuck at this point unfortunately: piping stdin to a subprocess launched by node. |
As this feature is not really relevant anymore and adds significant implementation I will close this. feel free to reopen if necessary |
I'd prefer to have this reopened. I'm essentially forced to implement my backup solution without autorestic because dumping a large database to disk inbetween is simply prohibitive :-/ |
@berlincount A similar tool 'resticprofile' supports backing up from STDIN. I actually have a different problem with it regarding hooks that is not supported and hoped autorestic would fix this situation. |
Many thanks to @agateblue for raising that. I personally agree with @berlincount: using the hooks script will create an intermediary file which will increase disk space and decrease security. Has someone encountered a solution or even a valid alternative? |
Sometimes, simply copying a directory isn't enough for a backup. This happens for instance when you're backing up a SQL database such as MySQL or PostgreSQL: to ensure the backup integrity, you need to use
pg_dump
and backup the output of that command.Luckily, restic supports backing up data piped via stdin. Do you think it would be possible to support this in
autorestic
?What I currently have in mind is:
Which
autorestic
would internally translate topg_dumpall | restic backup --stdin --stdin-filename psqldata
.I'm going to experiment with that, let me know what you think about it :)
The text was updated successfully, but these errors were encountered: