I backed up a database:
BACKUP DATABASE MyDatabase TO DISK = \'MyDatabase.bak\' WITH INIT --overwrite existing
And then tried to restore it
RESTORE DATABASE {DatabaseName} FROM DISK = '{databasename}.bak' WITH REPLACE, RECOVERY