Duplicity - save backup to multiple destinations

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Is it possible to configure duplicity to save the generated backup to multiple destinations without doing the whole backup process twice?



Something like duplicty --full --volsize 1024 -v5 sftp://user@host.com/folder /save/also/to/server/folder



If I do a full backup every two weeks, I want to save that full backup to a folder on my server where I can download it and on a sftp backup space (which is not reachable from the outside).



If I downloaded the backup, I would delete it on the server (because I have not that much space on my server).
Is there an easy way of doing this with duplicity directly, or did I need to create a custom shell script which does all this stuff?







share|improve this question



















  • execute duplicity several time with different destination ?
    – Kiwy
    Apr 27 at 13:19






  • 1




    yes, but this would lead to multiple backup processes (multiple times packaging of backup files, encrypting, etc.) which is inefficient (huge server load).
    – mfuesslin
    Apr 27 at 13:28










  • how about the multi backend in mirror mode as described in the man page<br/> &nbsp; duplicity.nongnu.org/duplicity.1.html#sect18 <br> ? ..ede/duply.net
    – ede
    Apr 28 at 9:11










  • Thank you. This seems also a good way to do it!
    – mfuesslin
    Apr 30 at 15:30














up vote
0
down vote

favorite












Is it possible to configure duplicity to save the generated backup to multiple destinations without doing the whole backup process twice?



Something like duplicty --full --volsize 1024 -v5 sftp://user@host.com/folder /save/also/to/server/folder



If I do a full backup every two weeks, I want to save that full backup to a folder on my server where I can download it and on a sftp backup space (which is not reachable from the outside).



If I downloaded the backup, I would delete it on the server (because I have not that much space on my server).
Is there an easy way of doing this with duplicity directly, or did I need to create a custom shell script which does all this stuff?







share|improve this question



















  • execute duplicity several time with different destination ?
    – Kiwy
    Apr 27 at 13:19






  • 1




    yes, but this would lead to multiple backup processes (multiple times packaging of backup files, encrypting, etc.) which is inefficient (huge server load).
    – mfuesslin
    Apr 27 at 13:28










  • how about the multi backend in mirror mode as described in the man page<br/> &nbsp; duplicity.nongnu.org/duplicity.1.html#sect18 <br> ? ..ede/duply.net
    – ede
    Apr 28 at 9:11










  • Thank you. This seems also a good way to do it!
    – mfuesslin
    Apr 30 at 15:30












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Is it possible to configure duplicity to save the generated backup to multiple destinations without doing the whole backup process twice?



Something like duplicty --full --volsize 1024 -v5 sftp://user@host.com/folder /save/also/to/server/folder



If I do a full backup every two weeks, I want to save that full backup to a folder on my server where I can download it and on a sftp backup space (which is not reachable from the outside).



If I downloaded the backup, I would delete it on the server (because I have not that much space on my server).
Is there an easy way of doing this with duplicity directly, or did I need to create a custom shell script which does all this stuff?







share|improve this question











Is it possible to configure duplicity to save the generated backup to multiple destinations without doing the whole backup process twice?



Something like duplicty --full --volsize 1024 -v5 sftp://user@host.com/folder /save/also/to/server/folder



If I do a full backup every two weeks, I want to save that full backup to a folder on my server where I can download it and on a sftp backup space (which is not reachable from the outside).



If I downloaded the backup, I would delete it on the server (because I have not that much space on my server).
Is there an easy way of doing this with duplicity directly, or did I need to create a custom shell script which does all this stuff?









share|improve this question










share|improve this question




share|improve this question









asked Apr 27 at 12:55









mfuesslin

31




31











  • execute duplicity several time with different destination ?
    – Kiwy
    Apr 27 at 13:19






  • 1




    yes, but this would lead to multiple backup processes (multiple times packaging of backup files, encrypting, etc.) which is inefficient (huge server load).
    – mfuesslin
    Apr 27 at 13:28










  • how about the multi backend in mirror mode as described in the man page<br/> &nbsp; duplicity.nongnu.org/duplicity.1.html#sect18 <br> ? ..ede/duply.net
    – ede
    Apr 28 at 9:11










  • Thank you. This seems also a good way to do it!
    – mfuesslin
    Apr 30 at 15:30
















  • execute duplicity several time with different destination ?
    – Kiwy
    Apr 27 at 13:19






  • 1




    yes, but this would lead to multiple backup processes (multiple times packaging of backup files, encrypting, etc.) which is inefficient (huge server load).
    – mfuesslin
    Apr 27 at 13:28










  • how about the multi backend in mirror mode as described in the man page<br/> &nbsp; duplicity.nongnu.org/duplicity.1.html#sect18 <br> ? ..ede/duply.net
    – ede
    Apr 28 at 9:11










  • Thank you. This seems also a good way to do it!
    – mfuesslin
    Apr 30 at 15:30















execute duplicity several time with different destination ?
– Kiwy
Apr 27 at 13:19




execute duplicity several time with different destination ?
– Kiwy
Apr 27 at 13:19




1




1




yes, but this would lead to multiple backup processes (multiple times packaging of backup files, encrypting, etc.) which is inefficient (huge server load).
– mfuesslin
Apr 27 at 13:28




yes, but this would lead to multiple backup processes (multiple times packaging of backup files, encrypting, etc.) which is inefficient (huge server load).
– mfuesslin
Apr 27 at 13:28












how about the multi backend in mirror mode as described in the man page<br/> &nbsp; duplicity.nongnu.org/duplicity.1.html#sect18 <br> ? ..ede/duply.net
– ede
Apr 28 at 9:11




how about the multi backend in mirror mode as described in the man page<br/> &nbsp; duplicity.nongnu.org/duplicity.1.html#sect18 <br> ? ..ede/duply.net
– ede
Apr 28 at 9:11












Thank you. This seems also a good way to do it!
– mfuesslin
Apr 30 at 15:30




Thank you. This seems also a good way to do it!
– mfuesslin
Apr 30 at 15:30










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










According to the github of duplicity, this feature is still in the to do list.

I think the easier way is to make a small shell script that will move the file at the end the process.



#!/bin/bash
duplicty --full --volsize 1024 -v5 /local save/folder &&
rsync /local save/folder user@host.com/folder ||
printf "an error occurs during the transfern"


It's a code sample it needs to be tested



The idea is if duplicity return 0 (no error) on the local backup then it runs rsync to send the file to the remote host.com and if one of the commands fails a small error message is written.






share|improve this answer























  • Thank you for your answer, but your referring to Duplicati rather than Duplicity in your github link... Seems that I need to do this by hand via shell script... Thank you for the suggested script.
    – mfuesslin
    Apr 27 at 15:26










  • OK you're completely right. I'm sorry I've been fool by google approximation algorithm though as duplicati is mainly base on duplicity I think it's still apply.
    – Kiwy
    Apr 27 at 15:48










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440416%2fduplicity-save-backup-to-multiple-destinations%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote



accepted










According to the github of duplicity, this feature is still in the to do list.

I think the easier way is to make a small shell script that will move the file at the end the process.



#!/bin/bash
duplicty --full --volsize 1024 -v5 /local save/folder &&
rsync /local save/folder user@host.com/folder ||
printf "an error occurs during the transfern"


It's a code sample it needs to be tested



The idea is if duplicity return 0 (no error) on the local backup then it runs rsync to send the file to the remote host.com and if one of the commands fails a small error message is written.






share|improve this answer























  • Thank you for your answer, but your referring to Duplicati rather than Duplicity in your github link... Seems that I need to do this by hand via shell script... Thank you for the suggested script.
    – mfuesslin
    Apr 27 at 15:26










  • OK you're completely right. I'm sorry I've been fool by google approximation algorithm though as duplicati is mainly base on duplicity I think it's still apply.
    – Kiwy
    Apr 27 at 15:48














up vote
0
down vote



accepted










According to the github of duplicity, this feature is still in the to do list.

I think the easier way is to make a small shell script that will move the file at the end the process.



#!/bin/bash
duplicty --full --volsize 1024 -v5 /local save/folder &&
rsync /local save/folder user@host.com/folder ||
printf "an error occurs during the transfern"


It's a code sample it needs to be tested



The idea is if duplicity return 0 (no error) on the local backup then it runs rsync to send the file to the remote host.com and if one of the commands fails a small error message is written.






share|improve this answer























  • Thank you for your answer, but your referring to Duplicati rather than Duplicity in your github link... Seems that I need to do this by hand via shell script... Thank you for the suggested script.
    – mfuesslin
    Apr 27 at 15:26










  • OK you're completely right. I'm sorry I've been fool by google approximation algorithm though as duplicati is mainly base on duplicity I think it's still apply.
    – Kiwy
    Apr 27 at 15:48












up vote
0
down vote



accepted







up vote
0
down vote



accepted






According to the github of duplicity, this feature is still in the to do list.

I think the easier way is to make a small shell script that will move the file at the end the process.



#!/bin/bash
duplicty --full --volsize 1024 -v5 /local save/folder &&
rsync /local save/folder user@host.com/folder ||
printf "an error occurs during the transfern"


It's a code sample it needs to be tested



The idea is if duplicity return 0 (no error) on the local backup then it runs rsync to send the file to the remote host.com and if one of the commands fails a small error message is written.






share|improve this answer















According to the github of duplicity, this feature is still in the to do list.

I think the easier way is to make a small shell script that will move the file at the end the process.



#!/bin/bash
duplicty --full --volsize 1024 -v5 /local save/folder &&
rsync /local save/folder user@host.com/folder ||
printf "an error occurs during the transfern"


It's a code sample it needs to be tested



The idea is if duplicity return 0 (no error) on the local backup then it runs rsync to send the file to the remote host.com and if one of the commands fails a small error message is written.







share|improve this answer















share|improve this answer



share|improve this answer








edited Apr 27 at 13:44


























answered Apr 27 at 13:38









Kiwy

5,30743350




5,30743350











  • Thank you for your answer, but your referring to Duplicati rather than Duplicity in your github link... Seems that I need to do this by hand via shell script... Thank you for the suggested script.
    – mfuesslin
    Apr 27 at 15:26










  • OK you're completely right. I'm sorry I've been fool by google approximation algorithm though as duplicati is mainly base on duplicity I think it's still apply.
    – Kiwy
    Apr 27 at 15:48
















  • Thank you for your answer, but your referring to Duplicati rather than Duplicity in your github link... Seems that I need to do this by hand via shell script... Thank you for the suggested script.
    – mfuesslin
    Apr 27 at 15:26










  • OK you're completely right. I'm sorry I've been fool by google approximation algorithm though as duplicati is mainly base on duplicity I think it's still apply.
    – Kiwy
    Apr 27 at 15:48















Thank you for your answer, but your referring to Duplicati rather than Duplicity in your github link... Seems that I need to do this by hand via shell script... Thank you for the suggested script.
– mfuesslin
Apr 27 at 15:26




Thank you for your answer, but your referring to Duplicati rather than Duplicity in your github link... Seems that I need to do this by hand via shell script... Thank you for the suggested script.
– mfuesslin
Apr 27 at 15:26












OK you're completely right. I'm sorry I've been fool by google approximation algorithm though as duplicati is mainly base on duplicity I think it's still apply.
– Kiwy
Apr 27 at 15:48




OK you're completely right. I'm sorry I've been fool by google approximation algorithm though as duplicati is mainly base on duplicity I think it's still apply.
– Kiwy
Apr 27 at 15:48












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440416%2fduplicity-save-backup-to-multiple-destinations%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay