LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-08-2003, 06:40 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,613

Rep: Reputation: 47
save daily from cron job the whole Web servers data


hi

how to save daily from cron job
the whole Web servers data from /srv/www
and send it via ftp to other linux server ?
I would be very glad, if someone could
post the script.

kind regards
cccc

Last edited by cccc; 09-08-2003 at 06:44 PM.
 
Old 09-08-2003, 09:29 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
No script, just a hint :)

rsync

Have fun,
Cheers,
Tink
 
Old 09-09-2003, 01:28 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
I would go with rsycn over ssh too.
First setup passwordless logins:
1) login as a user on the client (where you want to connect from)
2) ssh-keygen -t dsa
(don't suppy a passphrase)
3) scp ~/.ssh/id_dsa.pub REMOTEUSER@REMOTEHOST:/home/REMOTEUSER/.ssh/authorized_keys2


Then create a cron job like this:
rsync -e ssh -arz /srv/www root@other.server:/srv/

If for some reason you can't use ssh and rsync then take a look at ftpcopy.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron Job Daily petenyce Linux - Newbie 17 01-04-2006 11:13 AM
updatedb daily cron job TranceDude Linux - Software 12 08-25-2005 12:09 PM
adding new cron job via web Bake-SaleNet Linux - Software 3 04-07-2004 06:31 AM
Semi-Daily Cron Job Apollo77 Linux - General 8 01-13-2004 02:17 PM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 02:30 PM


All times are GMT -5. The time now is 01:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration