On 05/19/2015 04:54 PM, Carlos E. R. wrote:
It says "upload". The wanted procedure has to upload or download in the appropriate direction each time it is called. It has to detect what files changed, either on google or locally, and copy the appropriate version to the other side. And in case both changed since the last sync, it has to warn.
I'm sorry, Carlos, but perhaps its that I RTFM'd the _duck docs more completely. First, it has both upload and download capability. Second, it has a "syncronise" option. Brute force, idiot simple would be to use that with CRON. Not elegant, and it might mean that you got copies 34 then 36 because of the timing of the CRON job, but is that really significant if the issue is "most up to date"? heck, other people might be working while you are sleeping so you'd miss a revision or few in the normal course of things anyway. Third, you could have a couple of scripts as well as the cron triggered one to do things like "synchronise all other downloads after I do an upload". Fourth, _duck has a 'list files in remote folder' option. Run that and cut out the date to see what's changed recently. Pretty standard scripting stuff. Some of this might be challenging for pure shell scripting which is why I like using Perl, Ruby or Python for anything much above a one-liner or simple "for each... " script. I've done a couple of Perl/TK scripts in my time but apart from using VIM, Thunderbird and systemsettings I'm not really a GUI guy. I *know* intellectually that you can put a GUI wrapper around just about anything, I've even seen it done in the SCO days for simple 'grep' and 'find', something I cosnidered gratuitous. But I don't need it so long as I have a command line and VIM. My point here is that this is not about uung *just* _duck or *just* rsync, but wrapping them up in a script. it s a good, time hounoured *NIX tradition. ============== A few other things occurred to me and I found a bit more googing to second and third pages ... As I said, I run my own ownCloud server on a broke (dead screen) laptop under my desk. ownCloud can sync to other stores, it has an 'external storage' option. With a slight proviso, that doesn't apply in my case' Google Drive and be the store for you ownCloud. That means the issue of ownCloud not being applicable that was brought up earlier does not apply. So, set this up and have the store look like something local. That opens up a whole raft of possibilities! What is they say about solving problems by introducing a level of indirection .... ? ============== More googling runs up Osync <quote src="http://www.netpower.fr/osync"> Osync is a robust bidirectional file synchronization tool written in bash and based on rsync. It works on local and / or remote directories via ssh tunnels. It's mainly targeted to be launched as cron task, with features turned towards automation among: Execution time control Fault tolerance with possibility to resume on error Soft deletion, on-conflict backups with automatic cleanup Alert notifications via email Before and /or after time controlled local and / or remote command execution File monitor mode </quote> Again, if its not _exactly_ what you want, its a script and so you can modify it to do more, you can add features, add external programs to carry out additions tasks, and more. ============== I freely admit this is different from the Windows approach of installing a program that does the job and you don't have to think about it. As I've commented before, that's the difference between Linux and Windows. There are a few classics like Kernighan and Pike's "The Unix Programming Environment" which illustrate the point of "UNIX as Tools". http://www.memecenter.com/fun/926560/the-difference -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org