• Creates a backup of a file

    Parameters

    • filePath: string

      Original file path

    • suffix: string = '.bak'

      Backup file suffix (defaults to '.bak')

    Returns Promise<string>

    Path to the backup file

    Error if backup creation fails