Well you dont want to do copy on creation because the file is still
being uploaded.

Just use rsync on a cron. And you want to go off of mtime for rsync.

-- Trevor

On Thu, Feb 23, 2012 at 5:34 PM, Chris Penn <cantorm...@gmail.com> wrote:
> I have 2 people uploading photos (from syria) to a server in the U.S.
> (~/photo/), via ssh, all under the same user (u...@server.com).  Users
> are using either scp or filezilla to upload images.  I would like to
> mirror/sync this folder to another folder in ~/ so that a copy of each
> file placed in ~/photo/ is put into another folder, i.e.,
> ~/photo_bak/,  say at creation of the file.
>
> Note: there is no need to monitor the files for changes, I just want a
> direct copy of the file put into the other folder upon creation.  I am
> not root on this server but I can write scripts, crontab, most
> terminal applications etc (shared hosting).
>
> Any ideas on how to accomplish this are welcome.
>
>
> Chris...
>
> --
> "As we open our newspapers or watch our television screens, we seem to
> be continually assaulted by the fruits of Mankind's stupidity."
>  -Roger Penrose
> _______________________________________________
> LinuxUsers mailing list
> LinuxUsers@socallinux.org
> http://socallinux.org/cgi-bin/mailman/listinfo/linuxusers
_______________________________________________
LinuxUsers mailing list
LinuxUsers@socallinux.org
http://socallinux.org/cgi-bin/mailman/listinfo/linuxusers

Reply via email to