Hi All,
I wrote a backup destination for the new backup system which sends files to Amazon S3. The script can be found here: /https://github.com/benjy14/cpanel-to-s3
It's quite simple and just shims in the S3cmd tool.
Problem
The script is not cleaning out old backups on S3. I'm not entirely sure why and I can't find an example, eg the SFTP backup destination source would be a nice reference?
I'm wondering if it could be because I didn't properly implement the get_ls() method? If someone with some experience with the backup system could help that would be great.
What would help to debug
Thanks.
I wrote a backup destination for the new backup system which sends files to Amazon S3. The script can be found here: /https://github.com/benjy14/cpanel-to-s3
It's quite simple and just shims in the S3cmd tool.
Problem
The script is not cleaning out old backups on S3. I'm not entirely sure why and I can't find an example, eg the SFTP backup destination source would be a nice reference?
I'm wondering if it could be because I didn't properly implement the get_ls() method? If someone with some experience with the backup system could help that would be great.
What would help to debug
- With what parameters is the script called to delete remote backups?
- When is the script called? Maybe it happens at a different time to when the backup runs?
Thanks.