backup and restore files to S3 and Glacier