LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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, 07:40 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,619

Rep: Reputation: 48
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 07:44 PM.
 
Old 09-08-2003, 10:29 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

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

rsync

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

Rep: Reputation: 65
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 12:13 PM
updatedb daily cron job TranceDude Linux - Software 12 08-25-2005 01:09 PM
adding new cron job via web Bake-SaleNet Linux - Software 3 04-07-2004 07:31 AM
Semi-Daily Cron Job Apollo77 Linux - General 8 01-13-2004 03:17 PM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 03:30 PM


All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
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