moving resources and files

moving resources and files

د mandy honeyman لخوا -
د ځوابونو شمیر: 4
Hello,
I thought I'd try to be clever and use backup to move some resources and files out of one course into another.

At first it looked like it was going to work but then I got this error:

Warning: Rename failed (No such file or directory) in /www/hosts/lvc.org/www/courses/files/index.php on line 220

Error: backup-sct_11-20041002-0935.zip not moved

Is there a hacky way to do this, or am I just going to have to down and upload all the resources and files in order to move them.

Thanks in advance for any help/advice.
cheers
Mandy


د درجې بندۍ اوسط:  -
In reply to mandy honeyman

Re: moving resources and files

د Eloy Lafuente (stronk7) لخوا -
د Core developers انځور د Documentation writers انځور د Moodle HQ انځور د Peer reviewers انځور د Plugin developers انځور د Testers انځور
Hi Mandy,

sorry but, what were you trying to move? Perhaps you have to download your .zip file and then upload it to its new location (course). Or move it from the OS.

Ciao موسکا

PS: I assume that your backup has ended OK and that you have problems moving it from one course to another...
In reply to Eloy Lafuente (stronk7)

Re: moving resources and files

د mandy honeyman لخوا -
Hi,
I was/am trying to move a backup zip file from one course backupdata folder into another course's files folder (the one that has the "move files here" option) that's when I get the error.

I realise that I can download and upload again I was just trying to avoid it موسکا
cheers
Mandy

PS I also realise I can just find the file and move it manually, but I was trying to use moodle functionality ;)

In reply to mandy honeyman

Re: moving resources and files

د Clive Gould لخوا -

If you're using Linux as an OS and can log in as root then it's quite possible to move material from one course directory to another. Moodle stores each course in a separately numbered directory and it's just a question of finding the right source and destination data directories. On our system they're under /home/moodle/???

Hope this helps...

In reply to mandy honeyman

Re: moving resources and files

د Mark Stevens لخوا -

Hi,

I'm getting the same thing, and I reported it as a bug in the code.  (I think I over-reacted by calling it a high priority since there are at least 2 workarounds موسکا

Mine is putting an extra / in the destination file path as in:

Warning: rename(/home/mysite/moodledata/1/backupdata/backup-sa-c-mstevens-20041005-2027.zip,/home/mysite/moodledata/1//backup-sa-c-mstevens-20041005-2027.zip): No such file or directory in /home/mysite/www/moodle/files/index.php on line 220

Error: backup-sa-c-mstevens-20041005-2027.zip not moved