Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to mirror (clone) my TV harddrive to my TVbackup harddrive daily. I don’t want to use RAID, and currently, both drives are in the same computer (this will change in the future).

In order to do this I want to setup Rsync because apparently this is best, and trigger it with a cron operation. I have no experience with this but if I have the following setup:

Source: /media/tv

Backup: /media/tvbackup

Is this the best command to use?

rsync -ax --delete --force media/tv/ media/tvbackup
share|improve this question

1 Answer 1

Depending on the size of the target disk, I would use

rsync -ax --delete-first --force media/tv media/tvbackup

as this will ensure that no longer existing files are removed so that there should in theory always be enough place for the copy operations.

Depending on the size of the target disk, if the backup disk is larger, you might also have a look at rsnapshot which keeps multiple generations of a backup using hardlinks on the target drive. rsnapshot uses rsync internally.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.