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

eddzzz

Yesss!!! That's the trick. Now it works.

Thank you!
martin

Run:
winscp.com nbbackup /command "synchronize remote d:\nbbackup /nbbackup -delete -mirror"

(note the .com extension)
eddzzz

There is no output to the screen when I enter command B, it just gives back a prompt.

Actually this is the same behaviour as when I enter command A, which also only gives back a promt. But then it does sync the two directories. Problem is that i need it to delete the removed files.
martin

Re: synchronize command doesn't with -delete option

So what does it do? What's the output on the console?
eddzzz

synchronize command doesn't with -delete option

I would like to backup a directory to a server via the commandline. I got it working, but for some reason only without the delete option, which I really need.

What works is:
winscp.exe nbbackup /command "synchronize remote d:\nbbackup /nbbackup"


What does not work is:
winscp.exe nbbackup /command "synchronize remote d:\nbbackup /nbbackup -delete -mirror"


The second command doesn't work at all. It not only doesn't delete, but it also doesn't copy any files anymore.
What am I doing wrong?

Thanks.