curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
chmod 755 /usr/local/bin/aws
- Create the file in the custom scripts directory:
wget https://gist.github.com/barryvdh/f6c83718b9f587955ce9/raw/10b161ea1d52f12d6ffa0a4c54f3dceab25de45e/user_backup_post.sh -P /usr/local/directadmin/scripts/custom
- Edit the bucket + credentials, make it executable
vi /usr/local/directadmin/scripts/custom/user_backup_post.sh
chmod 755 /usr/local/directadmin/scripts/custom/user_backup_post.sh
- Create a backup in '/home/(reseller)/admin_backups/aws' (or subdirectory)