How to delete some folder or/and files inside each backup version

One way around commandline escape/encoding issues is to use --parameter-file=C:\myargs.txt, then edit the file and make it look like this:

--passphrase=%%password$#!@

Preferably, save the file with UTF-8 encoding (include BOM), just to be sure.

You can add more options if you want, just add each option on a line by itself, and then invoke Duplicati with:

“C:\Program Files\Duplicati 2\Duplicati.CommandLine.exe” purge “googledrive:///MyBackups/Duplicati/GoogleDrive?authid=MyAuthID” File1ToBeDeleted.txt File2ToBeDeleted.exe --parameter-file=C:\myargs.txt
5 Likes