[Cialug] Auto create link in a folder

Scott Yates Scott at yatesframe.com
Sun May 17 17:24:17 CDT 2015


if you do that, then anything uploaded to test will also appear in the live
and he stated he did not want that.

On Sun, May 17, 2015 at 5:16 PM, David Champion <dchamp1337 at gmail.com>
wrote:

> Why do you have to link the files? Can't you just link the uploads folder?
>
> -dc
>
> On Sun, May 17, 2015 at 4:56 PM, Scott Yates <Scott at yatesframe.com> wrote:
>
> > Maybe just a script that would just symlink all the files in the live
> > upload folder over to the test upload folder?
> >
> > On Sun, May 17, 2015 at 4:23 PM, Matthew Nuzum <newz at bearfruit.org>
> wrote:
> >
> > > I have a live wordpress site and a staging wordpress site. I have a job
> > > that can periodically copy the live site over to staging to keep the
> test
> > > site relatively up to date. However, this site deals with large files
> and
> > > it is wasteful to keep a duplicate copy of them on the same drive.
> > >
> > > What I’d like to do is create a link for the files in the live site
> over
> > > to staging whenever it is created. I don’t care if the links are soft
> or
> > > hard. For example,
> > >
> > > If a file is created in /var/www/live/wp-content/uploads automatically
> > > create a link to it in /var/www/staging/wp-content/uploads.
> > >
> > > I can create a batch job that does this every so often, but is there an
> > > easy way to have it happen automatically? I seem to remember a service
> > that
> > > will watch file for file modifications and do something on demand. That
> > > seems like an efficient way to do it. I was thinking the service was
> > called
> > > iwatch or similar, but searching for that only shows me stuff about the
> > > Apple Watch.
> > >
> > > Here’s what I don’t want to do:
> > > I don’t want to symlink the uploads folder. I want to be able to upload
> > > files to staging without them going to live.
> > >
> > > --
> > > Matthew Nuzum
> > > newz2000 on freenode, skype, linkedin and twitter
> > >
> > >
> > > ♫ You're never fully dressed without a smile! ♫
> > >
> > >
> > > _______________________________________________
> > > Cialug mailing list
> > > Cialug at cialug.org
> > > http://cialug.org/mailman/listinfo/cialug
> > >
> > _______________________________________________
> > Cialug mailing list
> > Cialug at cialug.org
> > http://cialug.org/mailman/listinfo/cialug
> >
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>


More information about the Cialug mailing list