Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Batch add from outside folder  (Read 3103 times)

0 Members and 1 Guest are viewing this topic.

fall-apart

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Batch add from outside folder
« on: February 27, 2007, 05:57:11 pm »

G'day, I searched through the forums, but couldn't find an answer for this:

I am moving from a photoblog to Coppermine.  I have all my photoblog pictures in a folder on my site, outside the Coppermine directory.  Is there any way I can use batch add to add these photos to Coppermine without downloading them and re-uploading?  Thanks!

Photoblog folder: http://www.marturia.net/mt/archives/
CPG folder: http://www.marturia.net/gallery/
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Batch add from outside folder
« Reply #1 on: February 28, 2007, 06:37:59 am »

Although not recommended, you can make the albums folder point to a directory outside of the coppermine root folder. Go to Coppermine's config, change the album path to ../mt/archives/
If you decide to use this option, make sure to create a userpics and an edit folder within http://www.marturia.net/mt/archives/ and to make the entire folder (with all sub-folders) writable for the script (see permissions section of the docs). Keep in mind that once you have files inside your database you mustn't change the path.

Another (better) option would be to create a symlink within http://www.marturia.net/gallery/albums/ that points to http://www.marturia.net/mt/archives/ (you may have to ask your webhost to create it for you).
Logged

fall-apart

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Batch add from outside folder
« Reply #2 on: February 28, 2007, 03:09:42 pm »

Okay, the symbolic link sounds like a good idea.  I can SSH into my account, but my knowledge of unix commands is very limited.  Could you walk me through the steps needed to create a symbolic link?  Thanks!
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Batch add from outside folder
« Reply #3 on: February 28, 2007, 04:16:53 pm »

*nix questions are beyond the scope of this support board. You always can ask your host or search the web. A good start is always wikipedia

http://en.wikipedia.org/wiki/Ln_%28Unix%29

Nibbler

  • Guest
Re: Batch add from outside folder
« Reply #4 on: February 28, 2007, 04:19:08 pm »

change to your gallery/albums directory, then

Code: [Select]
ln -s ../../mt/archives
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.