Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: scp cronjob

by ides (Deacon)
on Sep 11, 2002 at 14:24 UTC ( [id://196947]=note: print w/replies, xml ) Need Help??


in reply to scp cronjob

Have you looked into using rsync? It only trasmits the differences between files and greatly reduces the bandwidth used. I use it to backup hundreds of GBs of data each day. It would negate the need for your script and it works over SSH.

To backup and/or mirror from the current directory to to your other server would go something like this in cron:

export RSYNC_RSH="/usr/bin/ssh -C" 0 0 * * * /usr/bin/rsync -ar * user@backupserver:/usr/local/apache/ht +docs

Hope this helps.

-----------------------------------
Frank Wiles <frank@wiles.org>
http://frank.wiles.org

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://196947]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-25 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found