Author |
Message |
Registered: March 13, 2007 | Posts: 671 |
| Posted: | | | | Just spend about 1½ hour on Google, and didn't find what I need - which is a program that is
freeware able to synchronize a local folder with a folder on a FTP-server able to do so from the command line without having to set up a "session" or anything first I have found several programs that can do almost all of the above, and then it just falls through on one of them...
Does anyone know where I can find such a program? Ideally, it would be nothing more than Windows' own built-in ftp program, but with a synchronize-switch... | | | The future is here. It's just not widely distributed yet. (William Gibson) |
|
Registered: March 13, 2007 | Posts: 2,692 |
| Posted: | | | | I've found the following page which documents the command line commands for use with Microsoft ftp see hereyou could setup a batch file (which would run the command lines) Update Edit ---------------- Hadn't realised you needed to synchronise until I re-read your query. Have a look at the following: http://www.fileware.com/products.htm$15 shareware (looks like fully functioning until you register) I have also found CarbonFTP hereFreeware I haven't tried any of these but they may be suitable | | | Paul | | | Last edited: by pauls42 |
|
Registered: March 13, 2007 | Posts: 793 |
| Posted: | | | | You could check out SyncBackSE, they have a freeware version which does FTP, and once you've set up the profile, you can start it unattended from a command line. |
|
Registered: May 22, 2007 | Reputation: | Posts: 1,033 |
| Posted: | | | | you could also try out SyncToy which is a power toy for windows XP. I know it has a graphical interface, I haven't really played with it, so I don't know if it has command lines, but I'm pretty sure you could at least schedual it after its set up. The batch file would also kind of work depending on your end goal. If you just need to copy from local to ftp and vice versa then that should work, but if there are changes on both sides I don't think (or it would probably be complicated) you can have it just copy newer files. (I know the xcopy command does, so you could always use a temp 'swap' folder and copy to there than use x-copy to copy to the real folder only copying newer files, if the ftp commands don't have similar) -Agrare |
|
Registered: May 19, 2007 | Reputation: | Posts: 5,918 |
| Posted: | | | | Not what you wanted but tossing out for others, I use Beyond Compare by Scooter Software. It has a graphical interface and I haven't looked into any automated means (will later at work if I remember) but it can sync local/network folders, sync over FTP (even two FTP servers), and even inside zip files being treated like directories. It costs a small amount but it's the best I've seen. |
|
Registered: March 14, 2007 | Reputation: | Posts: 6,747 |
| Posted: | | | | Quoting Dr. Killpatient: Quote: Not what you wanted but tossing out for others, I use Beyond Compare by Scooter Software. I've been using this program for years but never tried to use it as FTPsync. Thx for the hint! | | | Karsten DVD Collectors Online
|
|
Registered: March 13, 2007 | Posts: 525 |
| Posted: | | | | While not ftp based, have you considered using rsync. A good windows version is cwrsync. rsync has the advantage of only syncing changes. And not just files that change. If you do a small change to say a 40mb file, it won't sync the whole file, it will sync just a small part of it.
I use rsync for phpdvdprofiler and my xml file is 40mb and usually only transfers under 300kb.
It does require more than ftp access to your server. ssh is best. | | | Home of the phpDVDProfiler forums |
|
Registered: May 19, 2007 | Reputation: | Posts: 5,918 |
| Posted: | | | | Beyond Compare does have scripting support. http://www.scootersoftware.com/Quote: Sample Scripts The following are some sample scripts to show how Beyond Compare can use scripts. You can either use these scripts as is or model your own scripts after them.
Here is a basic script which copies all of the newer and orphaned files from one folder to another, using a previously created session:
load "Sync Laptop" sync update:left->right
Synching two folders
Here is a more advanced script which syncs two specific folders using advanced filters. This works the same as loading the folders in the Folder Viewer and performing a "Mirror Left to Right" folder synchronization.
# Turn logging on log normal "C:\My Documents\Webpage\Synclog.txt" # Load the default session and exclude all but certain file types load <default> filter "*.html;*.htm;*.png;*.jpg" # Load the base folders load "C:\My Documents\Webpage" "ftp://user@ftp.some-isp.com/webroot" # Copy different files left to right, delete orphans on right mirror left->right
|
|
Registered: May 19, 2007 | Reputation: | Posts: 5,918 |
| Posted: | | | | Quoting DJ Doena: Quote: I've been using this program for years but never tried to use it as FTPsync.
Thx for the hint! When you click on the folder icon, there's a tab for FTP. I didn't know it had scripting support until now. I'm rather pleased. It'll make updating my phpdvdprofiler easier now. |
|
Registered: March 14, 2007 | Reputation: | Posts: 6,747 |
| Posted: | | | | Quoting Dr. Killpatient: Quote: When you click on the folder icon, there's a tab for FTP. I've always used it from the context menu for file and directory comparisons (being a programmer myself ) | | | Karsten DVD Collectors Online
|
|
Registered: March 13, 2007 | Reputation: | Posts: 2,217 |
| Posted: | | | | I have looked for such a tool a while back and came up empty-handed too.
Best I could find for my needs was sitecopy, though it needs a clear "starting point" and after that uploads what was changed since the last run. This is neccessary because it doesn't really check the file on the ftp-server but just a local list to the local directory and then uploads everything that was changed. It's freeware, it's commandline. Not ideal, but works for me.
cya, Mithi | | | Mithi's little XSLT tinkering - the power of XML --- DVD-Profiler Mini-Wiki | | | Last edited: by Mithi |
|
Registered: May 19, 2007 | Reputation: | Posts: 5,715 |
| Posted: | | | | Quoting Rander: Quote: Just spend about 1½ hour on Google, and didn't find what I need - which is a program that is freeware able to synchronize a local folder with a folder on a FTP-server able to do so from the command line without having to set up a "session" or anything first I have found several programs that can do almost all of the above, and then it just falls through on one of them...
Does anyone know where I can find such a program? Ideally, it would be nothing more than Windows' own built-in ftp program, but with a synchronize-switch... I don't understand if the "command line" demand is vital. Allthough I'm a server oriented person, I use FTP Watchdog from Tools&More, which is really simple and robust. AA | | | Complete list of Common Names • A good point for starting with Headshots (and v11.1) |
|
Registered: March 13, 2007 | Posts: 671 |
| Posted: | | | | Hmmm... It seems such a program just doesn't exist...
Yes, it is vital to be able to run it from the command line, as it should be used in a batch-file.
No, I cannot use a program that needs a profile to be set up first which can then be executed from the command line, as I will (often) not know what the source and target is before the batch-file is actually run - this is because I actually do plan to use it for synchronizing cover scans to phpDVDProfiler, and it was my attention to share it with other users when it was done (which is where the freeware demand comes in, as well as the command line "configuration", as it needs to be as simple as possible). As it is now, I'm doing it with Windows' own FTP-client, but, as it lacks the sync feature, it uploads each and every cover in each run. What I wanted was to be able to only upload the new covers and those that have changed - and hopefully also delete the covers from the FTP-site that is no longer present on the harddrive... | | | The future is here. It's just not widely distributed yet. (William Gibson) |
|
Registered: May 19, 2007 | Reputation: | Posts: 5,918 |
| Posted: | | | | Beyond Compare allows you to create batch scripts without any kind of profile being created. You do, however, have to create the command file used to execute. It'll also only copy changed files.
IMHO, it has everything you want minus the free price tag. | | | Last edited: by Dr. Killpatient |
|
Registered: May 19, 2007 | Reputation: | Posts: 5,715 |
| Posted: | | | | Quoting Rander: Quote: Hmmm... It seems such a program just doesn't exist... I think, you should really take a quick look at FTP Watchdog. It eliminates the need for FTP scripting. It constantly checks a given (local) directory (and all its subdirectories) for file changes and synchronizes it with the FTP server. Therefore scripting can be limited to a local directory and it can ignore the remote site completely... Regards, AA BTW: locally I use robocopy on Windows machines... | | | Complete list of Common Names • A good point for starting with Headshots (and v11.1) | | | Last edited: by AiAustria |
|
Registered: March 13, 2007 | Posts: 360 |
| Posted: | | | | I did a search and came up with http://www.ftpvoyager.com. It seems to do what you want it to do. |
|