in reply to scp cronjob
Rsync, as mentioned above, would be a much better option. If you are primarily copying html files, you may want to also turn on compression (-z option).
The trailing slash on the source directory is important. See man rsync for more info./usr/bin/rsync -az -e ssh source_directory/ \ user@backupserver:destination_directory -e ssh tells rsync to use ssh for transport -a is archive mode, which gives recursion and preserves permissions an +d such. -ar would be harmlessly redundant. -v will show filenames during the transfer.
|
---|