Given the WSL is already installed, then by typing 'bash' in the Windows Command Prompt (cmd.exe), one can enter the Linux shell, like so:
Code: Select all
C:\Users\john> bash
john@john-pc:/mnt/c/Users/john$
Code: Select all
sudo apt-get install duplicity
Code: Select all
duplicity /mnt/c/Users/john/data/ file:///mnt/d/backup_john_data/
Code: Select all
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
GnuPG passphrase:
Retype passphrase to confirm:
No signatures found, switching to full backup.
--------------[ Backup Statistics ]--------------
StartTime 1625233987.10 (Fri Jul 2 15:53:07 2021)
EndTime 1625233987.45 (Fri Jul 2 15:53:07 2021)
ElapsedTime 0.35 (0.35 seconds)
SourceFiles 4
SourceFileSize 8566184 (8.17 MB)
NewFiles 4
NewFileSize 8566184 (8.17 MB)
DeletedFiles 0
ChangedFiles 0
ChangedFileSize 0 (0 bytes)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 4
RawDeltaSize 8565672 (8.17 MB)
TotalDestinationSizeChange 8587856 (8.19 MB)
Errors 0
-------------------------------------------------
Code: Select all
duplicity restore file:///mnt/d/backup_john_data/ /mnt/c/Users/john/data_restored/
Code: Select all
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Fri Jul 2 15:53:00 2021
GnuPG passphrase:
The '--volsize' parameter can be used to change the size of the produced backup file chunks (the default value is 25Mb, which might be rather small by modern standards, and produce a lot of files in the backup directory).
Code: Select all
duplicity --volsize 700 /mnt/c/Users/john/data/ file:///mnt/d/backup_john_data/