gui, man, authors: Update docs, translations, and contributors

This commit is contained in:
Jakob Borg
2021-02-17 07:45:43 +01:00
parent fb078068b4
commit c014fc5ec5
51 changed files with 460 additions and 250 deletions
+15 -12
View File
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SYNCTHING-VERSIONING" "7" "Feb 08, 2021" "v1" "Syncthing"
.TH "SYNCTHING-VERSIONING" "7" "Feb 17, 2021" "v1" "Syncthing"
.SH NAME
syncthing-versioning \- Keep automatic backups of deleted files by other nodes
.
@@ -50,7 +50,7 @@ not and can not archive the old version.
.SH TRASH CAN FILE VERSIONING
.sp
This versioning strategy emulates the common “trash can” approach. When a file
is deleted or replaced due to a change on a remote device, it is a moved to
is deleted or replaced due to a change on a remote device, it is moved to
the trash can in the \fB\&.stversions\fP folder. If a file with the same name was
already in the trash can it is replaced.
.sp
@@ -182,21 +182,24 @@ behavior as mentioned above. I created the following script and saved it as
.ft C
@echo off
:: We need command extensions for mkdir to create intermediate folders in one go
rem Enable UTF\-8 encoding to deal with multilingual folder and file names
chcp 65001
rem We need command extensions for md to create intermediate folders in one go
setlocal EnableExtensions
:: Where I want my versions stored
set VERSIONS_PATH=%USERPROFILE%\e.trashcan
rem Where I want my versions stored
set "VERSIONS_PATH=%USERPROFILE%\e.trashcan"
:: The parameters we get from Syncthing, \(aq~\(aq removes quotes if any
set FOLDER_PATH=%~1
set FILE_PATH=%~2
rem The parameters we get from Syncthing, \(aq~\(aq removes quotes if any
set "FOLDER_PATH=%~1"
set "FILE_PATH=%~2"
:: First ensure the dir where we need to store the file exists
for %%F in ("%VERSIONS_PATH%\e%FILE_PATH%") do set OUTPUT_PATH=%%~dpF
if not exist "%OUTPUT_PATH%" mkdir "%OUTPUT_PATH%" || exit /B
rem First ensure the dir where we need to store the file exists
for %%F in ("%VERSIONS_PATH%\e%FILE_PATH%") do set "OUTPUT_PATH=%%~dpF"
if not exist "%OUTPUT_PATH%" md "%OUTPUT_PATH%" || exit /B
:: Finally move the file, overwrite existing file if any
rem Finally move the file, overwrite existing file if any
move /Y "%FOLDER_PATH%\e%FILE_PATH%" "%VERSIONS_PATH%\e%FILE_PATH%"
.ft P
.fi