the problem with cp -a is that if you put it in a script to run from cron, if the files are existant in both source and destination, cp waits for your input to overwrite or not... So this is not good in a script.. at least for me.
I built my own script with Tar, and simple mv to the smbshare.
Originally Posted by jailbait
The best command to back up your hard drive is the cp command. Use the -a option. Suppose that you have your USB drive mounted on /mnt/abc. Then the command to back up your drive would be:
cp -a / /mnt/abc
This will give you an update backup where you only copy files that have changed since the last backup. It will preserve permissions and ownership. It also makes it easy to restore a single file or directory as well as being fairly easy to restore the entire file system.