def optional_actions(encrypt, path, compress_file, **kwargs):
    '''
    Optional actions about of AWS S3 and encrypt file.
    '''
    yes = ('y', 'Y')
    file_to_upload = normalize_path(path) + compress_file[1]
    if encrypt in yes:
        encrypt_file(compress_file[1], compress_file[0])
        file_to_upload = compress_file[0]

    if kwargs.get('s3') in yes:
        factory_uploader('S3', name_backup=file_to_upload,
                         bucket_name=AWS_BUCKET_NAME, action='upload')

    if kwargs.get('glacier') in yes:
        factory_uploader('Glacier', name_backup=file_to_upload,
                         vault_name=AWS_VAULT_NAME,
                         path=os.path.join(os.path.expanduser('~'),
                                           '.zoort.db'),
                         action='upload')
    if kwargs.get('dropbox') in yes:
        factory_uploader('Dropbox', name_backup=file_to_upload,
                         action='upload')
    if kwargs.get('swift') in yes:
        factory_uploader('Swift', name_backup=file_to_upload,
                         action='upload')
Optional actions about of AWS S3 and encrypt file.