![](https://seccdn.libravatar.org/avatar/c64c2eacb8f713e5e3fd051c8a060920.jpg?s=120&d=mm&r=g)
Hi
From: Bruce Marshall [mailto:bmarsh@bmarsh.com]
On Wednesday 27 November 2002 4:35 am, Leen de Braal wrote:
Looking for a way to copy a directory (incl subdirs) to a safe location every night.
How to do that the best way??
TIA L1
Here's what I use every night (on the same machine)
rsync -auvz --delete /home/ /home2
If I were doing this to a remote machine, it would be:
rsync -e ssh -auvz --delete /home/ user@remoteid:/home2/
but then it would be asking me for a password and since I run it as a cron job, I would have to change the above.
No, it does not necessarily nead a password, you could use challenge-response authentication.
Generate your ssh-keys with