Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

If using a backup strategy that involves EBS snapshots, its best practice to schedule a cron job that leverages the EBS Backup and Restore features of SoftNAS.

We now make this script available to you via the softnas-cmd API. The script will store the snapshots in your AWS account under the EC2 Snapshots console and they will also be seen in the SoftNAS Storage Manager console in the "EBS Backup and Restore" tab. Please note that the retention policy has now been removed and you can create as much EBS snapshots as you want. You also have the ability to manually cleanup old EBS snapshots from the UI after a while.

Step-by-step guide using IAM policy:

  1. Make sure that you are using the SoftNAS_HA_IAM role and it is attached to your SoftNAS instance.
  2. As  'root' schedule the below cron. I'm using every 8 hours for my snapshot interval (*/8 in the hourly place holder):
  3. "crontab -e" to edit the crontab.
  4. add this line: "0 */8 * * *  softnas-cmd login softnas <password> && softnas-cmd ebs_backup create > /dev/null 2>&1" 

Step-by-step guide using AWS Managed KMS Keys:

  1. As either 'root' or 'ec2-user', schedule the below cron. I'm using every 8 hours for my snapshot interval (*/8 in the hourly place holder):
  2. "crontab -e" to edit the crontab.
  3. add this line: "0 */8 * * * softnas-cmd login softnas <password> && softnas-cmd ebs_backup create '<yourAccessKey>' '<yourSecretKey>' > /dev/null 2>&1" 





  • No labels