Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest

Re: OPTION EXCLUDE with strange results for hidden UNIX files

Hej Martin,

it works like a charm.
So, given the following folder structure:
 Directory of \\backup\backup3

11-05-2020  18:53    <DIR>          .
11-05-2020  12:13    <DIR>          ..
11-05-2020  18:57    <DIR>          .proftpd.fifo
14-05-2020  20:35    <DIR>          Daily Backups
11-05-2020  12:18    <DIR>          Old Backups
11-05-2020  12:37    <DIR>          Test


I have two possibilities now:
synchronize  -filemask=|.proftpd.fifo/;"Old Backups/";"Test/"  remote  "\\backup\backup3\"   "/Daily Backups/"
vs.
synchronize  remote   "\\backup\backup3\Daily Backups\"   "/Daily Backups/"
Where the former uses the file mask to exclude the unwanted ones, and the latter uses the source folder to only include the wanted.

Thank you!
/Torsten
Torsten

Re: OPTION EXCLUDE with strange results for hidden UNIX files

You are right, it is a folder.
Do you mean to say I should use another exclude filter then? Which one?
/T
martin

Re: OPTION EXCLUDE with strange results for hidden UNIX files

Thanks for all the details. Isn't the .proftpd.fifo actually a folder, not a file?
Torsten

Re: OPTION EXCLUDE with strange results for hidden UNIX files

Hej Martin
Here we go.
First, as it looked on the command prompt. Note that it does not exclude the file .protftpd.fifo, the rest is secondary. Note further that the source folder \\backup\backup3\ is on an FTP server as well, but since WinSCP cannot copy directly from one FTP server to another, I had to share the folder on the source FTP server as an SMB share.
D:\Klinikdokumenter\Klinik - EDB\Klinik Backup\NAS Synchronization>"C:\Users\Administrator\AppData\Local\Programs\WinSCP\WinSCP.com"   /loglevel=2  /loglevel=2 /log=logfi

le.log /xmllog=logfile.xml  /script=glostrup-test2.txt
batch           on
reconnecttime   60
include         |.proftpd.fifo
Connecting to fjernskrivebord.tg150.dk:8021 ...
Connected
Starting the session...
Session started.
Active session: [1] **********@fjernskrivebord.tg150.dk
Comparing...
Local '\\backup\backup3' => Remote '/Test'
Synchronizing...
Local '\\backup\backup3' => Remote '/Test'
\...\.proftpd.fifo        |            0 B |    0,0 KB/s | binary |   0%
Lost connection.
Timeout detected. (control connection)
Could not retrieve file information
Can't get attributes of file '/Test/.proftpd.fifo'.
(A)bort, (R)econnect (0 s): Reconnect
Connecting to fjernskrivebord.tg150.dk:8021 ...
Connected
Starting the session...
Session started.
Lost connection.
Timeout detected. (control connection)
Could not retrieve file information
Can't get attributes of file '/Test/.proftpd.fifo'.
(A)bort, (R)econnect (4 s): Abort
Lost connection.
Timeout detected. (control connection)
Could not retrieve file information
Can't get attributes of file '/Test/.proftpd.fifo'.
Copying files to remote side failed.
Session '[email protected]' closed.
No session.
Exit code: 1
Max roundtrip: 5569
D:\Klinikdokumenter\Klinik - EDB\Klinik Backup\NAS Synchronization>

Second, the content of the script file here:
option batch on
option reconnecttime 60
option