I agree with Trevor rsync -avzru /home/user/photo /home/user/photo_bak
http://linux.die.net/man/1/rsync run it in cron you may want to log the output somewhere so you can go back at any time and validate that it is still working. careful not to fill up /home Adam Flaig "I'll just say what's in my heart: 'Ba-bump, ba-bump, ba-bump.' " -- Mel Brooks <http://www.goodreads.com/author/show/126491.Mel_Brooks> On Thu, Feb 23, 2012 at 8:58 PM, Trevor Benedict <mre...@gmail.com> wrote: > 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 >
_______________________________________________ LinuxUsers mailing list LinuxUsers@socallinux.org http://socallinux.org/cgi-bin/mailman/listinfo/linuxusers