I have a NAS on my LAN and I want to have an incremental backup once a day on a removable hard disk and then a full backup once a week. I heard about crontab
and rsync
, but I don't have any idea on how to do incremental and full backups.
My PC is running Linux, so I can use rsync
and crontab
. How should I set up rsync
and crontab
working together to have a daily incremental backup and a weekly full backup?
Supposing that NAS IP Address: 192.168.1.100
and the removable hard disk is plugged in my PC with USB, what scripts do I have to write? I need to backup all the folders in the NAS.
Thank you in advance!
Here is a detailed instruction about how to use rsync and crontab to backup linux files. http://www.cubebackup.com/blog/automatic-backup-linux-using-rsync-crontab/
But you need to understand the process and made modifications based on your need.