Hi,
I’m trying to purge some files that shouldn’t have been included in the backup on the first hand. I understand that’s what the purge command can be used for.
It often fails when running but usually appears successful when --dry-run=true.
Now i have a case where it always fails even when dry-run = true, thus I believe something makes it unhappy.
I’m using version 2.0.2.14_canary_2017-12-22 on linux Mint 18.3 using lastest mono 5.4.1.6
Here is the output
Please let me know how I can provide some more useful information.
marc@resh-lakish ~ $ sudo duplicati-cli purge 'webdavs://o*********t.stackstorage.com//remote.php/webdav/resh-lakish/home?auth-username=o********t&auth-password=*************' '--passphrase=*********' --dbpath=/root/.config/Duplicati/KNQLJCGAWY.sqlite --verbose --dry-run=true '--include=*/Storage/Users/marc/VirtualBox VMs/*'
Input command: purge
Input arguments:
webdavs://o**********t.stackstorage.com//remote.php/webdav/resh-lakish/home?auth-username=o*********t&auth-password=**********************
Input options:
passphrase: *************************
dbpath: /root/.config/Duplicati/KNQLJCGAWY.sqlite
verbose:
dry-run: true
Starting purge operation
Listing remote folder ...
Replacing fileset duplicati-20171227T180000Z.dlist.zip.aes with duplicati-20171227T180001Z.dlist.zip.aes which has with 16 fewer file(s) (9.79 GB reduction)
System.NullReferenceException: Object reference not set to an instance of an object
at Duplicati.Library.Main.Database.LocalDatabase.WriteFileset (Duplicati.Library.Main.Volumes.FilesetVolumeWriter filesetvolume, System.Data.IDbTransaction transaction, System.Int64 filesetId) [0x000b4] in <118ad25945a24a3991f7b65e7a45ea1e>:0
at Duplicati.Library.Main.Operation.PurgeFilesHandler.DoRun (Duplicati.Library.Main.Database.LocalPurgeDatabase db, Duplicati.Library.Utility.IFilter filter, System.Action`3[T1,T2,T3] filtercommand, System.Single pgoffset, System.Single pgspan) [0x003d6] in <118ad25945a24a3991f7b65e7a45ea1e>:0
at Duplicati.Library.Main.Operation.PurgeFilesHandler.Run (Duplicati.Library.Utility.IFilter filter) [0x00054] in <118ad25945a24a3991f7b65e7a45ea1e>:0
at Duplicati.Library.Main.Controller+<>c__DisplayClass36_0.<PurgeFiles>b__0 (Duplicati.Library.Main.PurgeFilesResults result) [0x0001c] in <118ad25945a24a3991f7b65e7a45ea1e>:0
at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.String[]& paths, Duplicati.Library.Utility.IFilter& filter, System.Action`1[T] method) [0x0014b] in <118ad25945a24a3991f7b65e7a45ea1e>:0
at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.Action`1[T] method) [0x00009] in <118ad25945a24a3991f7b65e7a45ea1e>:0
at Duplicati.Library.Main.Controller.PurgeFiles (Duplicati.Library.Utility.IFilter filter) [0x0001a] in <118ad25945a24a3991f7b65e7a45ea1e>:0
at Duplicati.CommandLine.Commands.PurgeFiles (System.IO.TextWriter outwriter, System.Action`1[T] setup, System.Collections.Generic.List`1[T] args, System.Collections.Generic.Dictionary`2[TKey,TValue] options, Duplicati.Library.Utility.IFilter filter) [0x0008e] in <08be045d41054657bb406455b4cf1a83>:0
at (wrapper delegate-invoke) System.Func`6[System.IO.TextWriter,System.Action`1[Duplicati.Library.Main.Controller],System.Collections.Generic.List`1[System.String],System.Collections.Generic.Dictionary`2[System.String,System.String],Duplicati.Library.Utility.IFilter,System.Int32].invoke_TResult_T1_T2_T3_T4_T5(System.IO.TextWriter,System.Action`1<Duplicati.Library.Main.Controller>,System.Collections.Generic.List`1<string>,System.Collections.Generic.Dictionary`2<string, string>,Duplicati.Library.Utility.IFilter)
at Duplicati.CommandLine.Program.RunCommandLine (System.IO.TextWriter outwriter, System.IO.TextWriter errwriter, System.Action`1[T] setup, System.String[] args) [0x003fb] in <08be045d41054657bb406455b4cf1a83>:0
marc@resh-lakish ~ $