Page 1 of 1

Two Directories at once?

Posted: Mon 26 Jun 2017 6:11 pm
by Greg_M
Cumulus
Configuration
Internet
Sites/Options
Directory

Is it possible to put two directory addresses on that line and have the data uploaded to two places at once?
The addresses are on two of my domains on the same server.
Just trying to move from one domain to the other.
Will it do it?

Re: Two Directories at once?

Posted: Mon 26 Jun 2017 6:14 pm
by steve
No. But you could add all the files to the 'extra files' and specify another path there.

Re: Two Directories at once?

Posted: Mon 26 Jun 2017 9:35 pm
by freddie
... or you could use a symbolic link on the server to link the two directories.

Re: Two Directories at once?

Posted: Tue 27 Jun 2017 12:17 pm
by Greg_M
freddie wrote:... or you could use a symbolic link on the server to link the two directories.

What's that?

Re: Two Directories at once?

Posted: Tue 27 Jun 2017 1:00 pm
by freddie
Greg_M wrote:
freddie wrote:... or you could use a symbolic link on the server to link the two directories.
What's that?
It's like a file system pointer from one directory to the other. If your two locations on the file system are:

Code: Select all

/var/www/site1
and

Code: Select all

/var/www/site2
and you were sending your Cumulus data to the first location, then (on a Linux system) you would issue the following command:

Code: Select all

ln -s /var/www/site1 /var/www/site2
This would "soft link" the second location to the first such that they both point to the same location on the filesystem. That way, your data appears to a user of the filesystem to be in both locations at once. That means you only need to place your Cumulus data in the first location, and it will appear to exist at the second one too.

There is a good write-up on Wikipedia - https://en.wikipedia.org/wiki/Symbolic_link - which also shows you the command to use if your web server is a Windows platform and not Linux.

HTH!

Re: Two Directories at once?

Posted: Tue 27 Jun 2017 7:55 pm
by Greg_M
Sounds over my pay scale, but thanks.

Guess I'll get things all set and then take a down day and switch over.
Thanks for trying
G