I have a small Webserver running CentOS that hosts a few Wordpress sites. I want to back this up to a FreeNAS box on my LAN.
The CentOS box backs up to a local directory every night. I want to rsync that daily backup to the FreeNAS box on my LAN.
All of the backups are placed in a /backup directory.
Obviously I will need SSH keys to do this, but I have never done such a setup before, so I have some questions.
1) Should I make the keys on my CentOS box and put the public key on the FreeNAS box? Or do it the other way around?
2) How do I make a backup user that only has permissions to read the /backup directory? As in, what would the actual commands for that be?
The CentOS box backs up to a local directory every night. I want to rsync that daily backup to the FreeNAS box on my LAN.
All of the backups are placed in a /backup directory.
Obviously I will need SSH keys to do this, but I have never done such a setup before, so I have some questions.
1) Should I make the keys on my CentOS box and put the public key on the FreeNAS box? Or do it the other way around?
2) How do I make a backup user that only has permissions to read the /backup directory? As in, what would the actual commands for that be?