Synchronize a file in the root directory

Advertisement

Guest

Synchronize a file in the root directory

Hi guy

i want synchronize one file only in the root directory but it synchronize all sub directory.
So how i can synchronize only one file ?? this my script:

open ftp://aaaaaaaa@xxxx.xxxxx.xxx
option include temp.txt
synchronize local -criteria=time C:\ShareFile / -mirror
synchronize local -criteria=size C:\ShareFile / -mirror

Example directory tree:
|-/temp.txt
|-/AA/temp.txt
|-/BB/temp.txt

I just want synchronize one file only in the root directory, don't synchronize file in sub directory AA and BB.

Tks !!!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Synchronize a file in the root directory

You have to exclude the subfolders.
Also option include is deprecated, use -filemask instead.

synchronize local -filemask=temp.txt|*/ -criteria=time C:\ShareFile / -mirror

Reply with quote

naoalee
Joined:
Posts:
4
Location:
Viet Nam

Re: Synchronize a file in the root directory

martin wrote:

You have to exclude the subfolders.
Also option include is deprecated, use -filemask instead.

synchronize local -filemask=temp.txt|*/ -criteria=time C:\ShareFile / -mirror


I do it. Tks you so much !!!

Reply with quote

Advertisement

You can post new topics in this forum