GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150
Rep:
well and then the whole cronjob thingy
#!/usr/bin/perl
# Backup stuff to a remote server
use Net::FTP;
# Create tmp tar file of the $ARGV[0] directory
my $dir = shift;
my $host = shift || yourhost';
my $user = shift || 'foo';
my $pass = shift || 'pass;
my $remote_dir = shift || 'backups';
die "No directory to backup! - $dir\n" unless ($dir && -d $dir);
# Times
# We need this so we can allow a weeks worth of backups
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time());
Thanks but i have figured out what im going to do. I am going to make a cronjob such as this:
1. Check to see if MySQL is running, and if not, to start it.
2. Run the script that performs the backup job.
This is a sample crontab entry for FreeBSD (which is what your server is running) that checks to see if MySQL is running (if it's not, it starts it) and does the backup:
Why ftp? FTP sucks and should be avoided if possible.
I say go with the last script mentioned using mysqldump to backup the database and then use scp or rsync using ssh keys for no password prompts mess in a script if you want to dump it to another server, which is smart for backing up, then its in two locations..
Originally posted by DrNeil You use ftp when your ISP provides you with FTP backup space the size of your harddisk for free
They do that in Scotland? Never heard of any ISP giving users backups space here in the USA. The most ISP's give with standard accounts is 5 to 10MB of space for a homepage...
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150
Rep:
Germany: 69 Euro all inclusive, really cheap. You can get Debian or Suse on it.
Free traffic of 300 Gig. 2 gig Pentium 80 Gig hard disk 1 gig memory (Probably now cheaper, but you gonna have to start sometimes). It comes with external reboot possibilities, remote tty login, remote repair system etc.
Before we were in the States dead dear.
The system is up now 7 months and runs fine.
Opps I think the term problem is in ISP; i ment hosting provider which is kinda an internet service provider. I worked in Germany at one who did hosting and connectivity, I always mix that up.
Sorry if that wasn't clear.
The FTP space is obviously some big backup solution, which has 100's on them so sftp aint an option until they install it. Traffic for backup is free.
Ahh.. yeah ISP here provides Internet.. Hosting provides hosting. I actually had a host provider that actually provided ssh access which was nice but now I don't believe in spending money for hosting, not when I can do it myself on my own ISP's connection.
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150
Rep:
Quote:
Originally posted by trickykid host provider that actually provided ssh access which was nice
We have some finance guys as customers, so it's better to outsource with all the crap they want. Exchange Server 9 Euro's to rent. I'll not gonna buy a windoze machine and then they suddenly decide they want something else next month. Also an NTL business line at home is more expensive than a hosted server with all quirks. Then I would to have buy an extra mchine for all that and when things get bigger and better I would have to buy the next machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.