keeping remote directory updated (advanced)

No more questions - please go to http://www.syncovery.com/forum instead

Moderator: SuperFlexible Administrators

keeping remote directory updated (advanced)

Postby senseysensor on Sat Feb 05, 2011 8:01 am

Hello 2 all.
Firstly excuse me my bad English if it is.

Well, I need real-time synchronization of the remote directory (via SSH). This is the work project - a site. I use phped and local project and every time i save local project files i need those files to be uploaded to server (there is my debug branch on server). Now I'm using WinSCP for this purpose (option "keep remote directory updated").
But! Sometimes happens that another programmers change files on my branch. There can be a lot of reasons for it, but if I manually won't update my local files before further editing, result will be the same - all changes will be missed. So, I hope in this situation will be helpful SFFS (super flexible file synchronizer).
Is there way to set up the synchronization that program will understand, the current version on server of any file was uploaded by me or by other (with other software)?
i think this can be possible if compare current file on server (content/checksum or size and date) with previously uploaded (this information would be saved somewhere in database). Or maybe there are other ways?

thanks for help.
senseysensor
 
Posts: 5
Joined: Sat Feb 05, 2011 6:35 am

Re: keeping remote directory updated (advanced)

Postby superflexible on Sun Feb 06, 2011 4:04 am

Yes our software can do that. It always compares source and destination. You can either schedule a regular run such as every 5 minutes or you can use Real-Time Sync. The only thing is if you specify only one copying direction (i.e. left to right / upload only), I need to verify if in real-time mode the program compares the timestamps against the destination. In regular scheduled sync mode it definitely does that.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: keeping remote directory updated (advanced)

Postby superflexible on Sun Feb 06, 2011 4:46 am

I just checked it: if you want the destination timestamp to be compared when running in real-time mode, you have to choose both "Left to Right" and "Right to Left" copying directions. When saving the profile, you will get a warning that real-time is not supported with FTP as a source side, but that is fine because it will work for uploading.

Also on the Real-Time Settings dialog, you may want to uncheck "Run profile entirely once" to avoid downloading newer files from the site (or if you want to allow downloading such files you can keep it checked.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: keeping remote directory updated (advanced)

Postby superflexible on Sun Feb 06, 2011 4:51 am

Slight clarification /correction: when running in real-time mode, the program will only process files that you have just changed locally. So these are by definition only extremely new files. That's why the timestamp doesn't have to be compared. The files are new. So it's safe to keep only the copying direction Left to Right. Only new files will be uploaded.

Just don't use "Exact Mirror" mode. Use "Standard Copying".
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: keeping remote directory updated (advanced)

Postby senseysensor on Sun Feb 06, 2011 2:35 pm

thanks a lot for answer, I'll try it as soon as I can (when I'm at work and have enough time for experiments).
senseysensor
 
Posts: 5
Joined: Sat Feb 05, 2011 6:35 am

Re: keeping remote directory updated (advanced)

Postby senseysensor on Wed Feb 09, 2011 5:54 pm

thanks for help once more, I tried what you said and this really works. (both-side sync + real-time sync)
But I'd like when it's a conflict (when someone or just other program changes any remote file), SFFS (sheduler) will immediately notify me. Now it just writes in status about this and doesn't upload these files.
It would be very conveniently to show on these events dialog something like "there is a conflict, program needs your attention". And capacity immediately compare problem files.

And one more thing, (saving correction) after each conflict appearance I need to stop scheduler, test backup integrity, manually solve problem and run task afresh (build file list, etc)? I think it's too inconveniently.
senseysensor
 
Posts: 5
Joined: Sat Feb 05, 2011 6:35 am

Re: keeping remote directory updated (advanced)

Postby superflexible on Wed Feb 09, 2011 6:07 pm

Hello,

on the SmartTracking dialog, you can choose "Prompt" for Conflicts. Note that only the Background Scheduler can prompt, but not when installed as a service.

You could also set up email notifications in case of conflicts (see Program Settings dialog).

And one more thing, (saving correction) after each conflict appearance I need to stop scheduler, test backup integrity, manually solve problem and run task afresh (build file list, etc)?


No, this is not necessary.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: keeping remote directory updated (advanced)

Postby senseysensor on Fri Feb 11, 2011 4:52 pm

Hello, I still have problem with live sync.
Look, I use both-side real-time synchronization. When I save file locally and remote file hasn't been modified, everything is OK. But if remote file WAS modified, in scheduler I got status like ".... incomplete: 1 copied of 2, confirmation missing". There is not any dialog appears! And accordingly local file doesn't copy to server (to the right site).
In smart tracking settings set option "prompt" on conflict. And I use background scheduler, not service, as you said. What do I wrong? Please help.

If it were at least message appears about conflict, it would be much better. ideal if I'd be able at once compare files and/or copy/delete them etc.
senseysensor
 
Posts: 5
Joined: Sat Feb 05, 2011 6:35 am

Re: keeping remote directory updated (advanced)

Postby superflexible on Fri Feb 11, 2011 4:58 pm

You need to study the log file.

If confirmations are missing they are usually those from Safety->Unattended Mode.

If problems remain, please send the log file and a detailed description to support@superflexible.com.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: keeping remote directory updated (advanced)

Postby senseysensor on Mon Feb 14, 2011 8:19 am

I've got a lot of a headache with this.
This is my log:
Super Flexible File Synchronizer v5.30d, build 159
Abbreviated log for profile Live sync, started at 10:43:31 on 14.02.2011
LEFT: D:\Documents\Project_local\debug\silent
RIGHT: sftp://.../gronovator-ua/debug/silent
Copying Direction : Bidirectional (Left To Right And Right To Left)
The profile is executed by the background scheduler.
Left Side Volume Name: Work
Preparing , base=\Documents\Project_local\debug\silent
Preparing , base=\www\sites\agronovator-ua\debug\silent
SSH error 114.
Timezone: listing offset 0, timestamp setting offset 0
Move Deleted Files Into Folder Setting is ON.
Left folder to move deleted files into is: D:\Documents\Project\--deleted-- (OK: TRUE)
Right folder to move deleted files into is: /www/sites/agronovator-ua/main/run/--deleted-- (OK: TRUE)
Exclude item: D:\Documents\Project\--deleted--
Exclude item: www\sites\agronovator-ua\main\run\--deleted--
Exclude item: RECYCLER
Exclude item: System Volume Information
Exclude item: D:\Documents\Project\--deleted--
Exclude item: www\sites\agronovator-ua\main\run\--deleted--
DetermineVolIdx(Path=D:\Documents\Project_local\debug\silent, differentfrom=sftp://.../gronovator-ua/debug/silent)
DriveType:3, SysID:AGRONOVA-SERG
OtherVolID (FTPHash):980357835
Other Vol ID:980357835
Vol ID:2961350022, Vol Label:Work, removeable:FALSE
Looking for Vol ID:2961350022
Vol #1 ID = 2961350022
DetermineVolIdx(Path=sftp:sftp://.../gronovator-ua/debug/silent, differentfrom=)
FTPHash:980357835 SysID:........
Looking for Vol ID:980357835
Vol #1 ID = 2961350022
Vol #2 ID = 980357835
Using reference database in file C:\Documents and Settings\All Users\Application Data\SuperFlexibleSynchronizer\Database\Live sync.syncfdb (758 Entries)
Volume indices used for SmartTracking database: 1, 2
This run is based on real-time folder monitoring information.
0. 14.02.2011 10:42:56 RETRY L site\views\tiu.html
1. 14.02.2011 10:43:23 MOD L site\views\tiu.html
0. ItemNotExcluded? \SITE\VIEWS\tiu.html, exclit:D:\Documents\Project\--deleted--,www\sites\agronovator-ua\main\run\--deleted--,RECYCLER,"System Volume Information",D:\Documents\Project\--deleted--,www\sites\agronovator-ua\main\run\--deleted--
ItemNotExcluded = TRUE (6)
File \site\views\tiu.html
Lexists=TRUE Rexists=TRUE, Lexistchanged=FALSE Rexistchanged=FALSE, CopyMode now:cmLeftToRight
Lmodified=TRUE, LoldTime=14.02.2011 10:41:08, LnowTime=14.02.2011 10:43:23
Rmodified=FALSE, RoldTime=14.02.2011 10:41:08, RnowTime=14.02.2011 10:41:09
To perform: cmLeftToRight \site\views\tiu.html
1. ItemNotExcluded? \SITE\VIEWS\tiu.html, exclit:D:\Documents\Project\--deleted--,www\sites\agronovator-ua\main\run\--deleted--,RECYCLER,"System Volume Information",D:\Documents\Project\--deleted--,www\sites\agronovator-ua\main\run\--deleted--
ItemNotExcluded = TRUE (6)
Ignoring duplicate action:D:\Documents\Project_local\debug\silent\site\views\tiu.html
Free Space on left side : unknown, needed: 0 Bytes
Free Space on right side: unknown, needed: 0 Bytes
Larger file is not being overwritten: sftp://....debug/silent/site/views/tiu.html
10:43:33: PerformStuffAfterCopying for tiu.html, CopyMode=cmLeftToRight, CompletedCopyMode=cmLeftToRight
10:43:33: Right Original Name:
10:43:33: Right Original Name (2): tiu.html
Errors / Access problems with 1 File(s):
\site\views\tiu.html (confirmation to overwrite newer files with older ones is missing in profile's Safety settings)
Reference database closed: C:\Documents and Settings\All Users\Application Data\SuperFlexibleSynchronizer\Database\Live sync.syncfdb (758 Entries)
SUMMARY
----------------
Short Results: INCOMPLETE: 0 copied of 1, confirmations missing
Operation completed at 10:43:33 on 14.02.2011
Total duration: 00:00:01
INCOMPLETE: 0 copied of 1, confirmations missing

...



Take a look this, please:
Image
I don't need unattended mode! How would I turn it off?
Thanks a lot for help.
senseysensor
 
Posts: 5
Joined: Sat Feb 05, 2011 6:35 am

Next

Return to Windows Support * new forum: www.syncovery.com/forum

cron