Thankx Trevor and Adam. I had considered rsync -avzru with cron but my initial thought was to avoid unnecessary rsync-ing. Ultimately rsync might be the way I go about this, I was just thinking there might be something else. Im thinking about using nohup on login to rsync -vru on logout. Then I could just tell the users that the stuff is backed up when they logout.
Chris... On Fri, Feb 24, 2012 at 7:42 AM, Adam Flaig <adamfl...@gmail.com> wrote: > 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 > > > > > > 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 > -- "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