Skip to content
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 to two different locations with only one .conf file #77

Open
jrbenito opened this issue Jan 15, 2015 · 4 comments

Comments

@jrbenito
Copy link

Hi,

Great script, thanks!

It would be nice to have the ability to have backups going to two different locations (probably different backends) in only one .conf file. I mean, backup to a local NAS and to Amazon S3 for local and offsite backup copies of same data. This is very easy to accomplish with two (or more) .conf files for the same data set, however it is more difficult to maintain and still need to call script twice for the backup. Would be interesting to manage from just one place (.conf) even do those two backup could be executed one after another sequentially by the script.

Please forgive if this is already possible but my lack of sleep avoid me from figuring out how :)

Thanks,
Benito

@zertrin
Copy link
Owner

zertrin commented Jan 20, 2015

Thanks for this feature request, I'm not sure yet how easy it would be to implement (I am otherwise pretty busy IRL currently so I didn't have time to look more closely) but this is definitely a good idea and I will look into it as soon as I can.

In the meantime propositions for implementing this and/or pull requests are welcome!

@xenithorb
Copy link

+1 I have a particular need for this because I have S3 as my offsite backup and I also want the same archive going to a bug-out external USB3.0 hard drive.

The best I can think of is to use duplicity in conjunction with backupninja and have it archive to the hard drive first, then sync that to S3.

@xmatthias
Copy link

Just stumbled across this request (i know it's a bit old) -

wouldn't the multi:// backend from duplicity be the solution to this request? duplicity(1)
configuring DEST='"multi:///tmp/multiconfig.conf?mode=mirror&onfail=abort'" did work for me for 2 newly created remote-sites (quotation is a bit odd in this case).

Duplicity-backup.sh only needs to be called once - and backs up to 2 different backends (i had one set to local filesystem, and the other to a sftp backend).

@xenithorb
Copy link

Wow, yes old indeed. That's exactly what I ended up doing. Though, I've since moved to borg, and simply use aws s3 sync to facilitate the syncing from the local backup copy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants