3 ms·
I've used rclone for a very similar purpose. Restic, which is used in this post looks very interesting as well. It's not the topic of the post, but database ba
by fabian2k 7y ago
I've used rclone for a very similar purpose. Restic, which is used in this post looks very interesting as well.
It's not the topic of the post, but database backups deserve a special mention. You can't just naively copy the database folder this way in most cases, you have to make sure to backup a consistent snapshot of the database. This is still not hard to do at smaller scales, when you can just add an exported dump of the database to your regular backup. But it is a point that needs some attention if you host the database yourself.
- ngcc_hk 7y agoVery good point. (For source code sync with git is a must.) And do rehearsal as well. Backup may not work.
- fabian2k 7y agoThe tricky thing with the naive copy as a database backup is that it actually could work if you test it while the database isn't writing at the moment. For example when you only tested this outside production on a test server without load. But yes, you do have to test and verify that your backup works. It might be configured entirely wrong, the cron job might not be running for some reason, you set it up with encryption years ago but lost the passphrase. There are plently of ways this can potentially fail.
- tluyben2 7y agoI have many servers with different (versions) of Linux distros on them and I found Duplicity | Restic very annoying to install. Vague (for me as non-Python expert) error messages and options randomly not working as a result. Rclone was absolutely painless to install everywhere.
- KAMSPioneer 7y agoWere you getting Python errors from Restic? Not terribly familiar with Duplicity, but Restic is written in Go (Github is https://github.com/restic/restic https://github.com/restic/restic).
- tluyben2 7y agoI tried 4 different similar packages; maybe I remember that detail wrong, but I could not get Restic working on older machines for some reason. Rclone was so simple and it just worked, so I did not investigate further. Is Restic much better?
- witten 7y agoYou might be thinking of Borg Backup, which is written in Python: https://borgbackup.readthedocs.io/ https://borgbackup.readthedocs.io/
- anderspitman 7y agoYeah for me the hardest part about installing restic was remembering how to unzip a bz2 file. I don't know what more you can ask for than a statically linked binary...
- tluyben2 7y agoOk, cannot have been Restic then; thanks, I am going to try that one now. And find out what the other Python one was; I was following an SO recommendation.
- marceloneil 7y agorestic actually supports rclone!
- anderspitman 7y agoI use restic (for dumping an encrypted deduped backup to a usb drive) and rclone (for pushing to backblaze B2). Both fantastic tools.