Gossamer Forum
Quote Reply
Backup
Hi,

How can I create a backup from the command line, my backups stops when I tried to build from the admin panel, so I need to do it manually.

Thanks for your help on this matter.

Jesus
Quote Reply
Re: [Jesus] Backup In reply to
A mySQL backup, or a full site backup?

For mysql, try:

Code:
mysqldump --add-drop-table -uUSERNAME -pPASSWORD DB_NAME > backup.sql

If you wanna do a full site backup, you can do:

Code:
cd /path/to/cgi-bin
tar -cvvf backup_cgi.tar *

(if you hold stull like me in a www folder and cgi-bin folder, be sure to back them both up Wink)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Backup In reply to
Thank you Andy.

What kind of backup does the admin panel does? (Full site or just MySQL)?

Thanks
Quote Reply
Re: [Jesus] Backup In reply to
You mean when you do a "Build" ? All that does, is create a file in /admin/backup, which can be restored via the GLinks admin panel

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Backup In reply to
Yes, so is it possible to create one of those backups from the command line?
Quote Reply
Re: [Jesus] Backup In reply to
Only by doing a build all from command line ;)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Backup In reply to
Is this the line I should run?

cd /to my cgi-bin links admin directory and then just type: nph-build.cgi

Jesus
Quote Reply
Re: [Jesus] Backup In reply to
cd /path/to/admin
perl ./nph-build.cgi --all

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Backup In reply to
Thank you!