Topic "Synchronize by Windows Schedule tasks - what to put there?"

Author Message
flarne
[View user's profile]

Joined: 2009-05-14
Posts: 5
Trying to synchronize local and remote stuff by the Window Schedule task and found some useful info . I follow the example by setting the path to the executive file C:\Program Files\WinSCP\WinSCP.exe and in the command line I put it like: /command "open user:password@example.com it". Well, it gets me nowhere.

When I skip the first part "/command" I at least get WinSCP started but the host is not to be found. I can't see that I've set password and host wrong given the example.

What am I missing here? (And what should the line look like using session instead...?)
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
What do you see in the console window after you run the command? What does the "it" at the end mean? It should not be there.
_________________
Martin Prikryl
flarne
[View user's profile]

Joined: 2009-05-14
Posts: 5
prikryl wrote:
What do you see in the console window after you run the command? What does the "it" at the end mean? It should not be there.


Sorry, that "it" shouldn't be there, only appeared in this post, though.

Did'nt get the command line to work in the Task Scheduler but when i put the command in a script instead and used "/script=..." it worked just fine.

Thanks for your reply and excellent service!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
flarne wrote:
but when i put the command in a script instead and used "/script=..." it worked just fine.

Did it worked like that from scheduler or only when you run it manually?

Have you read FAQ on scheduling?
_________________
Martin Prikryl
flarne
[View user's profile]

Joined: 2009-05-14
Posts: 5
prikryl wrote:
Did it worked like that from scheduler or only when you run it manually?


Yes, the Scheduler starts the script:

option batch on
option confirm off
open session
synchronize both H:\Musik /Public/Music
close
exit

But after mapping up the content WinSCP won't start transfering due to desktop.ini files can't be found. Manual synch proceed just fine.

My session is stored to ini-file. I'm using ftp only and a Qnap NAS.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
OK, I guess the scheduler account does not have permissions to the folder. If that's not true, please post a full log file showing the problem.

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. For posting extensive logs you may use pastebin or similar application. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.
_________________
Martin Prikryl
flarne
[View user's profile]

Joined: 2009-05-14
Posts: 5
prikryl wrote:
OK, I guess the scheduler account does not have permissions to the folder.


Yes, it was a permission problem. I set up an account on the server identical with my Window account and now it works fine... even if I have some smaller issues with files or folders repeateadly interrupting the synchronization which makes the whole process stop (think it concerns specific letters or characters in the file and folder names such as "#/" - yes, I've set them to be replaced in the config)... Are such synch problems supposed to be ignored by the command lines above? I can deal with corrupted synch on specific files but it's some irritating when the process just won't ignore them and go on...

Another even smaller issue... is their a way to automatically clear the log file on a scheduled scheme...?

Thanks, for a wonderful forum...
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
flarne wrote:
Are such synch problems supposed to be ignored by the command lines above?

No they are not. Synchronization interrupts on error. Though I do not understand what errors are you having. Can you explain?

Quote:
Another even smaller issue... is their a way to automatically clear the log file on a scheduled scheme...?

What is scheduled scheme? Though you can configure WinSCP to overwrite log files.
_________________
Martin Prikryl
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