First time installation, existing data

Ask all your questions regarding OC 4.x and older. Please read the Support Forum Rules
Forum rules
Before you post; make sure you are using at least PHP Version 5.3.x - Also read How To Solve Problems By Yourself

Re: First time installation, existing data

Postby sjau » Sat Jun 16, 2012 6:54 pm

monkeypigs wrote:
sjau wrote:you need to change the data root of OC or your ftp server.... they can be both in the same place...

But then OC doesn't pick up any existing data in there! Only stuff that I "upload" via OC.


It does... but the file chaching / checking thingy isn't always that speedy :) so if you add a new file by ftp, it might be a few minutes before it's added to OC file caching
sjau
Starter
 
Posts: 79
Joined: Sun May 20, 2012 9:34 pm

Re: First time installation, existing data

Postby monkeypigs » Sat Jun 16, 2012 7:25 pm

Hmm.... I've left it overnight and nothing gets added, unless through OC.
Can't see what the problem is there then, if you are supposed to be able to handle FTP uploads. Users and permissions all seem fine.....
monkeypigs
Beginner
 
Posts: 10
Joined: Wed May 16, 2012 4:12 pm

Re: First time installation, existing data

Postby sjau » Sat Jun 16, 2012 7:28 pm

then issue a manual scanFiles()

or maybe only in git it does auto-rescan meanwhile...
sjau
Starter
 
Posts: 79
Joined: Sun May 20, 2012 9:34 pm

Re: First time installation, existing data

Postby louis-m » Sun Jun 17, 2012 10:20 am

doesn't this do what we are after?

basically, I'm after a button on the menu eg General Files which will allow me to see the files under an existing location eg /var/Files/general_files

http://owncloud.org/support/custom-mount-configuration/
louis-m
Beginner
 
Posts: 12
Joined: Sat May 26, 2012 9:19 am

Re: First time installation, existing data

Postby RandolphCarter » Mon Jun 18, 2012 9:03 am

I've had success with creating soft links in the data directory to places I want to access (but for my personal data only, haven't tried sharing them). Of course, the permissions still have to be set accordingly for OwnCloud to be able to access the files, but I think you won't get around that bit with any method.

For me, owncloud recognized the files all by itself (although it took some time). Currently I simply have two links to my Music and Photo collection, and both have been scanned (although the Music application doesn't seem to recognize all files, but I don't think that's related to the file access itself, since all the files are visible in the Files section). Even upload works if the directories are writable to www-data user.

With that approach, you can use every method of data access which is mountable (i.e. you can use ftp, ssh, smb and many more).

Edit: This method obviously only works for Linux servers - Windows users, sorry :twisted:
RandolphCarter
Inventory
 
Posts: 2179
Joined: Wed May 30, 2012 7:42 am
OwnCloud version: 5.0.5
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.13

Re: First time installation, existing data

Postby Thunn » Sat Jun 23, 2012 8:10 am

i've now read this hole topic, and it seems that non of you guys have found a solution for this problem with existing data files directorys , are that correct ? or have i missed something. ?
Thunn
Newbie
 
Posts: 1
Joined: Sat Jun 23, 2012 7:59 am

Re: First time installation, existing data

Postby Kwart1001 » Tue Jul 24, 2012 4:07 pm

RandolphCarter wrote:Edit: This method obviously only works for Linux servers - Windows users, sorry :twisted:


For the record, it's working very good over here on W7. Not with soft links, but with directory junction hard links to a directory, using mklink /J ;)
Kwart1001
Newbie
 
Posts: 1
Joined: Tue Jul 24, 2012 3:57 pm

Re: First time installation, existing data

Postby Briga » Thu Jul 26, 2012 7:56 pm

Thunn wrote:i've now read this hole topic, and it seems that non of you guys have found a solution for this problem with existing data files directorys , are that correct ? or have i missed something. ?


Apparently so. Somebody has managed (in another topic) a messy workaround but I believe it is more to use an external drive for storing .... importing existing files and folders there is no solutions.
I have also tried to use the mount configuration as in help (via mount.php) but it seems not to work. Or at least nothing happens.

I am also try to make the head or tail of it.
Briga
Newbie
 
Posts: 1
Joined: Thu Jul 26, 2012 7:39 pm

Re: First time installation, existing data

Postby TerryC3 » Thu Aug 02, 2012 12:46 pm

Has anybody tried sharing existing data in the Business Edition? Just wondering if it's any different.
This is a bit of a showstopper for me as the company is happy to pay for the supported version but I have to show base functionality first.

:(
TerryC3
Newbie
 
Posts: 2
Joined: Thu Jul 26, 2012 4:37 pm

Re: First time installation, existing data

Postby louis-m » Fri Aug 03, 2012 8:22 pm

finally got this going......

the important bits:
1. you must create the folder in the owncloud gui under Files eg MyMusic
2. the directory (the existing data) you are pointing it at eg /var/data/MyMusicOK must have read/write access to the webserver user eg apache

create the mount.php under the ownloud config dir

EXAMPLE (for user "MusicLover" with folder under owncloud GUI Files>MyMusic & datadir = /var/data/MyMusicOK):

<?php
return array(
'user'=>array(
'MusicLover'=>array( '/$user/files/MyMusic'=>array('class'=>'OC_Filestorage_Local','options'=>array('datadir'=>'/var/data/MyMusicOK')),
),
),
);
);
louis-m
Beginner
 
Posts: 12
Joined: Sat May 26, 2012 9:19 am

PreviousNext

Return to OwnCloud Community Edition 4.x and older

Who is online

Users browsing this forum: No registered users and 7 guests