Configure GNAS for your environment.
After installation, GNAS is configured with AWS credentials and backup preferences through a YAML configuration file.
Open the configuration file
Edit the GNAS configuration file to define your AWS credentials, storage paths, backup schedule, and network settings.
# Open the GNAS configuration file
sudo nano /etc/gnas/config.yamlConfiguration reference
Configure the following sections in your GNAS config.yaml:
aws:
access_key: YOUR_ACCESS_KEY_ID
secret_key: YOUR_SECRET_ACCESS_KEY
region: us-west-2
bucket: gnas-backups
storage:
local_path: /mnt/gnas/data
retention_days: 30
backup:
schedule: "0 2 * * *" # Daily at 2 AM
compression: true
encryption: true
encryption_key: "your-secure-encryption-key"
network:
port: 8080
allow_ips:
- 192.168.1.0/24
- 10.0.0.0/8Restart the service
After editing the configuration file, restart the GNAS service to apply your changes.
sudo systemctl restart gnasYour buckets. Your workers. Your control.