Giter Club home page Giter Club logo

Comments (11)

JoshData avatar JoshData commented on May 3, 2024

Hello! No that's on the TODO. :)

All of the user data is in /home/user-data, so backing up just those files is sufficient. Though the system services (dovecot, postfix, etc.) should be stopped first to prevent getting things in the middle of an inconsistent state.

Happy to accept a pull request.

from mailinabox.

vdavez avatar vdavez commented on May 3, 2024

Thinking out loud. Would it make sense to include a weekly AWS glacier
image of the user-data folder as an option?
On Mar 18, 2014 9:03 AM, "Joshua Tauberer" [email protected] wrote:

Hello! No that's on the TODO. :)

All of the user data is in /home/user-data, so backing up just those files
is sufficient. Though the system services (dovecot, postfix, etc.) should
be stopped first to prevent getting things in the middle of an inconsistent
state.

Happy to accept a pull request.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-37929539
.

from mailinabox.

JoshData avatar JoshData commented on May 3, 2024

Absolutely.

from mailinabox.

vdavez avatar vdavez commented on May 3, 2024

I might be able to hack that out as a pull request.
On Mar 18, 2014 9:07 AM, "Joshua Tauberer" [email protected] wrote:

Absolutely.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-37929950
.

from mailinabox.

nstanke avatar nstanke commented on May 3, 2024

Tarsnap would be cool as backup-service.

[1] https://www.tarsnap.com/
[2] http://www.bishnet.net/tim/tarsnap/run.sh

from mailinabox.

JoshData avatar JoshData commented on May 3, 2024

Fyi, the problem I'm trying to solve right now is how to make backups that are incremental & encrypted....

from mailinabox.

JoshData avatar JoshData commented on May 3, 2024

Update: A backup script is now running daily and is generating encrypted, incremental backup files. Now we just need to get the files copied to a backup location.

from mailinabox.

zkanda avatar zkanda commented on May 3, 2024

@JoshData Any update on this? I would love to have a backup solution that works out of the box.
Do you have anything that your looking forward to use? e.g. Tarsnap, S3, etc?

from mailinabox.

JoshData avatar JoshData commented on May 3, 2024

Then farthest I got was having a script get executed after the backup is done making files:

https://github.com/mail-in-a-box/mailinabox/blob/master/management/backup.py#L200

In /home/user-data/backup/after-backup I have:

#!/bin/bash
rsync -e "sshpass -p my_password ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" -avz $STORAGE_ROOT/backup/encrypted/ my_usernam@my_backup_host:

from mailinabox.

JoshData avatar JoshData commented on May 3, 2024

Closing in favor of #262.

from mailinabox.

CaffTech avatar CaffTech commented on May 3, 2024

I know you've closed this in favor of #262 but I thought I'd add a comment with what I tried to sync the encrypted backups with S3 using the AWS CLI tools (see: http://aws.amazon.com/cli/)

First I installed PIP:

wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py

Then install the AWS tools:

pip install awscli

Now we can test by doing either aws help or aws configure

When doing aws configure I found it worked better to leave the default region and output format prompts to none.

Now I can just do:

aws s3 sync /home/user-data/backup/encrypted s3://my-mail-backup-bucket/nightly

Hope that helps someone.

from mailinabox.

Related Issues (20)

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.