Just create/update not delete server files on Duplicity

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








up vote
0
down vote

favorite












I did take a look at



  • Duplicity docs man duplicity

  • Searched at google for something like duplicity don't delete uploaded files

But I found nothing related to what i'm looking for.



I have a folder at my local machine and i'm doing backup on Google Drive



/tmp/test
├── dir01
│   └── tmp.tgz
└── dir02
├── tmp.sql
└── tmp.tgz


Then I'm using duplicity to achieve this



GOOGLE_DRIVE_SETTINGS=gdrive && 
duplicity /tmp/test pydrive+gdocs://developer.gserviceaccount.com/my-bkp


That's working just great, the problem is:



if I eg. accidentally delete /tmp/test/dir01/tmp.tgz then call duplicity sync it will delete this file at the server, I don't want that behavior, I need duplicity never delete a file on the server just because it's not present at local folder and yes create and update files on remote server once they are present on local directory.



I'm pretty sure it's a common wanted behavior but I found nothing about that, does duplicity support that feature? If not there is some way to achieve this using duplicty ?



Thanks







share|improve this question























    up vote
    0
    down vote

    favorite












    I did take a look at



    • Duplicity docs man duplicity

    • Searched at google for something like duplicity don't delete uploaded files

    But I found nothing related to what i'm looking for.



    I have a folder at my local machine and i'm doing backup on Google Drive



    /tmp/test
    ├── dir01
    │   └── tmp.tgz
    └── dir02
    ├── tmp.sql
    └── tmp.tgz


    Then I'm using duplicity to achieve this



    GOOGLE_DRIVE_SETTINGS=gdrive && 
    duplicity /tmp/test pydrive+gdocs://developer.gserviceaccount.com/my-bkp


    That's working just great, the problem is:



    if I eg. accidentally delete /tmp/test/dir01/tmp.tgz then call duplicity sync it will delete this file at the server, I don't want that behavior, I need duplicity never delete a file on the server just because it's not present at local folder and yes create and update files on remote server once they are present on local directory.



    I'm pretty sure it's a common wanted behavior but I found nothing about that, does duplicity support that feature? If not there is some way to achieve this using duplicty ?



    Thanks







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I did take a look at



      • Duplicity docs man duplicity

      • Searched at google for something like duplicity don't delete uploaded files

      But I found nothing related to what i'm looking for.



      I have a folder at my local machine and i'm doing backup on Google Drive



      /tmp/test
      ├── dir01
      │   └── tmp.tgz
      └── dir02
      ├── tmp.sql
      └── tmp.tgz


      Then I'm using duplicity to achieve this



      GOOGLE_DRIVE_SETTINGS=gdrive && 
      duplicity /tmp/test pydrive+gdocs://developer.gserviceaccount.com/my-bkp


      That's working just great, the problem is:



      if I eg. accidentally delete /tmp/test/dir01/tmp.tgz then call duplicity sync it will delete this file at the server, I don't want that behavior, I need duplicity never delete a file on the server just because it's not present at local folder and yes create and update files on remote server once they are present on local directory.



      I'm pretty sure it's a common wanted behavior but I found nothing about that, does duplicity support that feature? If not there is some way to achieve this using duplicty ?



      Thanks







      share|improve this question











      I did take a look at



      • Duplicity docs man duplicity

      • Searched at google for something like duplicity don't delete uploaded files

      But I found nothing related to what i'm looking for.



      I have a folder at my local machine and i'm doing backup on Google Drive



      /tmp/test
      ├── dir01
      │   └── tmp.tgz
      └── dir02
      ├── tmp.sql
      └── tmp.tgz


      Then I'm using duplicity to achieve this



      GOOGLE_DRIVE_SETTINGS=gdrive && 
      duplicity /tmp/test pydrive+gdocs://developer.gserviceaccount.com/my-bkp


      That's working just great, the problem is:



      if I eg. accidentally delete /tmp/test/dir01/tmp.tgz then call duplicity sync it will delete this file at the server, I don't want that behavior, I need duplicity never delete a file on the server just because it's not present at local folder and yes create and update files on remote server once they are present on local directory.



      I'm pretty sure it's a common wanted behavior but I found nothing about that, does duplicity support that feature? If not there is some way to achieve this using duplicty ?



      Thanks









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 1 at 18:39









      deFreitas

      174110




      174110

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2faskubuntu.com%2fquestions%2f1042721%2fjust-create-update-not-delete-server-files-on-duplicity%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1042721%2fjust-create-update-not-delete-server-files-on-duplicity%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491