View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


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

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


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

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

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


Have fun,
Old 09-09-2003, 02:28 PM   #3
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/ 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.


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:50 AM.

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