Ning Developer Docs

Please see the Backing Up Content Page on our Documentation for more details.

Views: 31

Replies are closed for this discussion.

Replies to This Discussion

Phil, thank you soooo much. I finally was able to get in and create the file. My issue was that I was not signed in as the administrator. Now however, when I try to retrieve the backup file, I receive this error message.

Parse error: syntax error, unexpected '}' in /soulgenesis/backup-content.php on line 47

Any thoughts on that?

I know I am close. Have there been other issues with line 47?
Stuck at the first hurdle :-(

Using the URL: http://www.ning.com/?view=apps&appUrl=lancasterdoctoral.ning.co...

I get a 'Ning - page not found' error :-(

Haven't requested source code - assume I don't need top? Help most appreciated as we could really do with this!
Hi Steve,

Just drop the .ning.com from the end of the url so that it's just lancasterdoctoral and it should work for you.

Thanks,
Phil
Hot damn that was a fast reply! :-)

Thanks - works :-) (maybe needs to be clearer - had thought i'd tried that first time to no avail...)

Woooh - we can clone our networks :-) REALLY impressed by the support/platform/possibilites - thanks guys!
Phil - sorry to duplicate my post from above. But I never got an answer and I still don't know how to actually retrieve the download. Everything else works.
---------------
ok - I installed the php file and get the dialog but what then? Actually I don't understand this...

"This script lets provides you with the atom-format representation of 100 public items of the object type that you choose."

All it does is open my RSS reader and offer me to subscribe to
http://www.mynetwork.com/backup-content.php

But what do I do then? How and where do I actually get the content.
Thank you

George
Hi George,

No problem; sorry we missed that. The Ning Content Store provides data in the atom format and uses the Atom publishing protocol to make updates. The script above will query the content store for a particular type of content (photos, video etc) and it will return a feed of the 100 latest items of that type. Depending on how you have your browser set up, it may pass the atom feed off to another application rather than displaying it. If you right click and view source you should see the raw feed. If you select Photos for example, you'll see a feed of the latest photo items, and within each you'll find a <content> element that contains the endpoint of the binary image.

You should consider the atom feed as meta-data. If you wanted to download the actual binaries for the photos, then you would likely need to write a script or batch file which ran through the atom feed, found the end point for each image and then downloaded it to your computer, using the other meta-data to provide a name etc.

Thanks,
Phil
Ahh - ok. Thanks Phil. Where can I find info how to (learn) to write such a script or bitch file?
How can I download "older" files (basically ALL files in my network) besides the latest 100 one?

thx
george
Hi George,

You can modify the script above so that it pages through results by adding from and to parameters; there's some more information on that here. In terms of writing a batch file or script to pull out and save the binary data, that will depend on what kind of development experience you have and what platform / operating system you're on. If you are already familiar with a programming language, then it makes sense to use that to pull the binary data down.

Thanks,
Phil
hey folks, i am almost there but for some reason i keep getting the following error when i go to get the final output:

Parse error: syntax error, unexpected '}' in /apps/soulgenesis/backup-content.php on line 47

please help.

jason
Hi Phil!

We've made some changes to our Network code (enough that we don't want to go back to the centralized network code), but I REALLY need to be able to extract profile question information from our community members. Our network is getting pretty large and we'd like to reach out via an e-mail newsletter. I've never seen an export mechanism in the members section of the Manage tab, how can I extract/export that info?

Also, any updated info on the release of the helper tool for turning a three way code merge into a two way code merge? Not that I really know what that means, but it sounds like something that might help us down the road with this issue.

Thanks in advance!
What about backing up users and their friends? Sorry if I missed this in the replies...

Also how would one restore the network? Or perhaps clone it to another network? I'm trying to create a dev environment where I can test widgets and what not before they go live....

RSS

© 2026   Created by Ning Developer Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service