Topic "synchronize with include isn't working at all"

Author Message
marc.bau
[View user's profile]

Joined: 2007-02-25
Posts: 3
hi

i'd like to backup my server. i tried to use the synchronize function for this, but this isn't working at all. everytime it tells me "nothing to synchronize". What's wrong with the script?

[code]
open username@example.com
option transfer automatic
option include "/backup;/srv/www/confixx/html/webalizer;/srv/www/web*/log;"
synchronize local "D:\Backup" "/"
close
exit
[/code]


Regards
Marc
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
You miss an inclusing of files contained in the directories. Anyway you would safer do this with 3 separate synchronize commands.
_________________
Martin Prikryl
marc.bau
[View user's profile]

Joined: 2007-02-25
Posts: 3
prikryl wrote:
You miss an inclusing of files contained in the directories. Anyway you would safer do this with 3 separate synchronize commands.


i tried different filters, and all are not working. For e.g.:

Code:
*/backup/*;*/srv/www/confixx/html/webalizer/*; */srv/www/web*/log/*;*/var/log/apache2/*;
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Again, please do 3 separate synchronize commands. Using your way you would have to explicitly enable all levels of the directories. Like
/srv/;/srv/www/;/srv/www/confixx/ ...
_________________
Martin Prikryl
marc.bau
[View user's profile]

Joined: 2007-02-25
Posts: 3
[quote="prikryl"]Again, please do 3 separate synchronize commands. Using your way you would have to explicitly enable all levels of the directories. Like
/srv/;/srv/www/;/srv/www/confixx/ ...[/quote]

i don't like to have 3 seperate synchronize commands if the software allows me to have one command.

why is it required to explicitly enable all levels? the normal sync command (if i split them in 3 seperate commands) sync the subdirectories, too.
guest123

Guest


so include filters are not applied recursively?
Ryan_Ricks
[View user's profile]

Joined: 2012-01-04
Posts: 2
i created an account this time.

i'm having the same problem. i need to synchronize files that meet a certain criteria through an undetermined number of sub-directories.

This thread seems like it is saying include masks only work for a pre-determined, specified directory.

Is there no way to apply include masks globally?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Ryan_Ricks wrote:
This thread seems like it is saying include masks only work for a pre-determined, specified directory.

That's wrong interpretation.

So do you want to synchronize, say only all *.txt files in all subdirectories of certain tree?
For that, use this include mask:
*/; *.txt

See
https://winscp.net/eng/docs/file_mask#directory_mask
_________________
Martin Prikryl
Ryan_Ricks
[View user's profile]

Joined: 2012-01-04
Posts: 2
thank you, that appears to work as described.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License