cronjob backup

infra-greg

Verified User
Joined
May 29, 2005
Messages
5
Location
Australia
Hi all

I was wondering if anyone could assist me. I'm pretty new to DirectAdmin, although most functions DON'T give me any headaches :)

But regarding Cronjobs....migraines :)

I have a client who would like to backup their site via cronjob every day. ie every 24hours. At midnight each time.

I have no idea what the command is or anything :( I've looked in the forums, but I couldn't find anything specific.

I dowloaded a linux type manual (800 odd pages)....big migraine :)

Very lost on this, although I'm sure the solution won't be that hard once someone explains the basics.

Thanks all

Greg
 
The user level does not contain an automated backup system. You could write a shell script that would tar everything and put it somewhere safe (like ftp it off the server).
Then just execute that every 24 hours.
 
Hi jmstacey

thx for your prompt reply :)

1. Shell Script? :( bigger migraine :)

How hard is this to do? Is it complicated? Any standard shell scripts you can recommend? SOS :)

2. If the Shell Script was to execute via cronjob and then say ftp it off the server...does this mean that their local computer would need to be "on" at that particular time so that it can ftp from server to their local computer....i feel like i'm asking a very stupid question here :)

3. Someone said that the cronjob could email the backup. This sounds incredible to me, but then again, many other wonderful things are possible in life :)

Thx again and sorry for the newbie questions...

Greg
 
1. It's as hard as you want it to be. A hell of a lot easier than C but difficult in it's own way
2. The receiving server or personal computer would need to be on and have an active ftp server ready to recieve connections
3. If it's small enough. If it's over 2mb it wouldn't be worth it since most isp's block emails that have bigger attachments.
 
thx for that :)

i just did a bit of a google on it all, and that's the end of me :eek:

looks like there's a few scripts I can use, but i think i'll have to hire someone to do this properly.

It doesn't seem like a massive job for someone who lives, eats and breathes code :)....give me design anytime...code scares me more than a horror movie :)

anyway, thanks for the answers...

greg
 
PM me some specs and I'll see what I can do. (like what should be backed up, and where it should be stored (within the user's privileges of course)).
 
Back
Top