Demo site file restore? - SOLVED!
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
- ranwilli
- Joomla! Master
- Posts: 19203
- Joined: Sun Feb 19, 2006 6:47 pm
- Location: Toledo, OH
- Contact:
Demo site file restore? - SOLVED!
I'm needing to do a demo site, and want to restore the site on an hourly basis because we'll be allowing Super Admin access.
I found a couple of threads here that address restoring the db (which were a God-send) but I haven't found anything relating to auto-restoring the complete file set.
Anybody know a reliable way to do that? (actually, ANY way to do that, I'll worry about reliable later.)
I found a couple of threads here that address restoring the db (which were a God-send) but I haven't found anything relating to auto-restoring the complete file set.
Anybody know a reliable way to do that? (actually, ANY way to do that, I'll worry about reliable later.)
Last edited by ranwilli on Sun Sep 30, 2007 9:30 am, edited 1 time in total.
Don't HACK the Joomla! core, Instead "Extend" and/or "Override."
Stay ON the update path.
https://harpervance.com
Stay ON the update path.
https://harpervance.com
-
- Joomla! Apprentice
- Posts: 43
- Joined: Wed Sep 26, 2007 11:28 pm
- Location: USA
- Contact:
Re: Demo site file restore?
couldn't you just cron a simple script that copies and places specific files from a storage directory?
- ranwilli
- Joomla! Master
- Posts: 19203
- Joined: Sun Feb 19, 2006 6:47 pm
- Location: Toledo, OH
- Contact:
Re: Demo site file restore?
uhhh, I guess I could, but honestly, I never did anything like that, and don't know where to begin. (I can set up a storage directory with the proper files, of course)whitewidower wrote: couldn't you just cron a simple script that copies and places specific files from a storage directory?
I guess it's time to dust off the php book and do some reading.
Last edited by ranwilli on Sat Sep 29, 2007 4:15 am, edited 1 time in total.
Don't HACK the Joomla! core, Instead "Extend" and/or "Override."
Stay ON the update path.
https://harpervance.com
Stay ON the update path.
https://harpervance.com
-
- Joomla! Apprentice
- Posts: 43
- Joined: Wed Sep 26, 2007 11:28 pm
- Location: USA
- Contact:
Re: Demo site file restore?
Here ya go.
This should get you started.
This should get you started.
- donnan
- Joomla! Ace
- Posts: 1494
- Joined: Sat Jun 30, 2007 1:23 am
- Location: Sydney, Australia
- Contact:
Re: Demo site file restore?
I have a neat little cron script that you can call any page from a cron job set time.
Let me know if you need it.
Cheers
Paul
Let me know if you need it.
Cheers
Paul
- ranwilli
- Joomla! Master
- Posts: 19203
- Joined: Sun Feb 19, 2006 6:47 pm
- Location: Toledo, OH
- Contact:
Re: Demo site file restore?
Thanks, guys, I appreciate it, but
Do I need to delete the fileset in the target area first?
Sorry if these are dumb!@# questions, I have always worked with a GUI on the linux server, wouldn't know the command line if it bit me.
I want to restore the entire Joomla fileset, can I do something like the old dos "copy c:/source/*.* c:/target " ?whitewidower wrote: ...
Do I need to delete the fileset in the target area first?
Sorry if these are dumb!@# questions, I have always worked with a GUI on the linux server, wouldn't know the command line if it bit me.
Last edited by ranwilli on Sat Sep 29, 2007 4:37 am, edited 1 time in total.
Don't HACK the Joomla! core, Instead "Extend" and/or "Override."
Stay ON the update path.
https://harpervance.com
Stay ON the update path.
https://harpervance.com
- donnan
- Joomla! Ace
- Posts: 1494
- Joined: Sat Jun 30, 2007 1:23 am
- Location: Sydney, Australia
- Contact:
Re: Demo site file restore?
Can I ask a silly question?
Why would you need to change the complete fileset. Is this to avoid any possibility of the files being hacked into?
I would have thought you would just need to delete the contents from the database.
Mate....what is your msn or yahoo messenger id?
Give me a yell over msn or yahoo messenger if you wanna chat about it. My handle is paul_askme2001'at'yahoo.com replace 'at' with @
Cheers
Paul
Why would you need to change the complete fileset. Is this to avoid any possibility of the files being hacked into?
I would have thought you would just need to delete the contents from the database.
Mate....what is your msn or yahoo messenger id?
Give me a yell over msn or yahoo messenger if you wanna chat about it. My handle is paul_askme2001'at'yahoo.com replace 'at' with @
Cheers
Paul
-
- Joomla! Apprentice
- Posts: 43
- Joined: Wed Sep 26, 2007 11:28 pm
- Location: USA
- Contact:
Re: Demo site file restore?
I was wondering the same thing. Perhaps just copy config files.
I guess some will change template css and such though.
But this will do what you are looking for.
Set the directory variable to your main storage directory.
http://fijiwebdesign.com/content/view/81/
I guess some will change template css and such though.
But this will do what you are looking for.
Set the directory variable to your main storage directory.
http://fijiwebdesign.com/content/view/81/
- ranwilli
- Joomla! Master
- Posts: 19203
- Joined: Sun Feb 19, 2006 6:47 pm
- Location: Toledo, OH
- Contact:
Re: Demo site file restore?
Thanks a lot! that should do nicely.
Since we're giving SuperAdmin, and there's gonna be a functioning copy of JoomlaXplorer and the PU database manager on board, we figure we'll redo it every hour, and sooner or later the script kiddies will go bother someone else.
Since we're giving SuperAdmin, and there's gonna be a functioning copy of JoomlaXplorer and the PU database manager on board, we figure we'll redo it every hour, and sooner or later the script kiddies will go bother someone else.
Don't HACK the Joomla! core, Instead "Extend" and/or "Override."
Stay ON the update path.
https://harpervance.com
Stay ON the update path.
https://harpervance.com
- kerman
- Joomla! Apprentice
- Posts: 5
- Joined: Thu Apr 05, 2007 10:47 pm
- Location: Spain
- Contact:
Re: Demo site file restore? - SOLVED!
Hi!
HAve anyone a ssh script to make this? I want to overwrite the entire httpdocs folder.
Thanks!
Edit: And if we can extract a gzip file directly to the folder, it will be great!!!
HAve anyone a ssh script to make this? I want to overwrite the entire httpdocs folder.
Thanks!
Edit: And if we can extract a gzip file directly to the folder, it will be great!!!
Signature Rules: http://forum.joomla.org/index.php/topic,65.0.html
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sun Feb 10, 2013 8:11 am
Re: Demo site file restore? - SOLVED!
Could you please post this little cron script. I would like to check it out.I have a neat little cron script that you can call any page from a cron job set time.
Let me know if you need it.
Cheers
Paul