Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

What files are important? - Backup

Quote Reply
What files are important? - Backup
Hi
I'm just wondering what files are important to back up regularly. In link 2.0 I always kept a backup of the backup directory and the link db, but I can't seem to find the link db in link SQL. Could someone please let me know. Thanks in advance

Quote Reply
Re: What files are important? - Backup In reply to
You have to back up the actual database doing a MySQL Dump. I am not 100% how to do this - if you are reading this and know how to do it, please respond!

Michael Bray
Quote Reply
Re: What files are important? - Backup In reply to
If you set your backups in the Links.pm to some number like 7, you'll keep the 7 most recent builds of your database. Those flat files can be imported into the database if you have to restore it.

You'd want to make a backup of your entire links/cgi-bin directory at least once, then keep a back up of any files you change, the /templates directory, the /defs directory and the /backup directory (at least the most recent copy).

If you have used the idea of templates.cfg from the Links 2.0 program, you'd also want to back up the Links.pm and HTML_Templates.pm files, because you probably make changes to them on a regular basis.

You can go in and dump the MySQL databse if you are on a DEDICATED server, but usually you can't if you are on a shared server. Search for "mysqldump" in the forum here for the commands.


http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: What files are important? - Backup In reply to
Thanks so much. I occasionally have problems and like to know that I can restore all info if necessary. Appreciate your help. Links SQL is a great program, just takes a bit to get used to the changes.

Quote Reply
Re: What files are important? - Backup In reply to
In Reply To:
If you set your backups in the Links.pm to some number like 7, you'll keep the 7 most recent builds of your database.
Could you expand on that possibly? I don't see any such option in Links.pm. The only mention I see of backups is:

# Set to 1 to enable backups, 0 to disable backups.
$LINKS{build_use_backup} = 1;

I find 7 to be excessive, so it would be nice to reduce that to 3 or 4.

Dan

Quote Reply
Re: What files are important? - Backup In reply to
I don't know for sure. I know this was talked about. Maybe it was never implemented.

In the nph-build.cgi:

Code:
sub build_backup {
$max_keep = 7;
You can set that to any number. If you set it to less than 7, you might want to delete manually any extra backups in the directory so you don't get confused.


http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: What files are important? - Backup In reply to
Thanks! That's a sensible place for it to be hidden. I wouldn't be surprised if it becomes a variable in the next version. I'll probably wait till the next release, instead of monkeying with things needlessly (following your advice). If it isn't a variable, then it looks like it should be pretty easy to set manually.

Dan