FTP, I still can't understand how it works

Discuss RoboTask here
Post Reply
anthonyystwarty
Posts: 46
Joined: Fri Dec 30, 2022 2:43 am

FTP, I still can't understand how it works

Post by anthonyystwarty »

I know it's a simple operation, but I don't know how to use it. How do I make FTP folders and files synchronized with my local folder? How do I make any changes made on FTP automatically change to the local folder?
I thought that as in the image below would solve it, but after the first task, the command deletes the files from the ftp and local folders. Can you help me please?
Attachments
2023-04-21_00-23-03.jpg
2023-04-21_00-23-03.jpg (102.22 KiB) Viewed 1832 times
Oleg
Site Admin
Posts: 3010
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: FTP, I still can't understand how it works

Post by Oleg »

Switch off the option "Exact copy".

Note that the "Exact Copy" mode first copies newer files from the source folder to the target folder and then removes all files from the target folder that are absent in the source folder.
Read this in RoboTask documentation (and help system): https://robotask.com/help/index.html?ss ... zation.htm
Oleg Yershov
Oleg
Site Admin
Posts: 3010
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: FTP, I still can't understand how it works

Post by Oleg »

I have just tested this mode. It works correctly.
If I remove some file from local folder next time the action download it again.
If I create some new file in local folder next time the action removes it from local folder.
The remote folder remains unchanged.
Maybe your problem is somewhere else: for example another task with synchronization from local to remote
FTPSync.png
FTPSync.png (16.41 KiB) Viewed 1815 times
Oleg Yershov
anthonyystwarty
Posts: 46
Joined: Fri Dec 30, 2022 2:43 am

Re: FTP, I still can't understand how it works

Post by anthonyystwarty »

Hello Oleg, thank you very much for the answer! I noticed that in remote folder I was using the forward slash \ , after I changed it to /, it worked perfect, could that be it? Another situation is that the empty folders are not being deleted, what function could you use to also delete empty folders, when an empty folder is deleted in the remote, it also deletes it from the local one?...Thank you!
Last edited by anthonyystwarty on Fri Apr 21, 2023 2:20 pm, edited 1 time in total.
Oleg
Site Admin
Posts: 3010
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: FTP, I still can't understand how it works

Post by Oleg »

hardly...
I don't think that the problem here.
Oleg Yershov
anthonyystwarty
Posts: 46
Joined: Fri Dec 30, 2022 2:43 am

Re: FTP, I still can't understand how it works

Post by anthonyystwarty »

Oleg wrote: Fri Apr 21, 2023 2:10 pm hardly...
I don't think that the problem here.
Thak you
Post Reply