I have a big database (150 GB) that needs a back up and I don't have space in current machine, so I am pointing it to the different box which has space. After executing the cmd, it is executing the query but taking long time, not showing stats also.
Query used:
backup database [DBName] to
disk = '\\Servername\H:\Backup7-7-2017\dbname.bak'
with copy_only, stats = 1
go
It is running for more than 5 minutes and no change on stats, and in destination folder the file is not created yet, so I am planning to go for manual backup from GUI. Now I want to kill this running backup as it is in suspended mode, when I checked in activity monitor.
ALT+Break
in SSMS, right-click "kill process" from the activity monitor, orCTRL+C
in sqlcmd. It probably won't end immediately but just give it a little time. Also I'd say give it more time in general, a backup of a large DB can take some time.BACKUP
statement to a new window. Cancel out of the GUI, and run the script.\\Servername\H$\Backup7-7-2017\dbname.bak
.... using a $, not : to access the administrative share. Also, try backing up a smaller database first to make sure your permissions to access and write to that share are sufficient.