DUMP DATABASE master TO '/home/dumps/master_2017_02_19.dmp'
However, when the backups should be created always in the same location, always with the same script and metodology, than it is quite convenient to use backup devices. Backup device is a definition that points to some location on the system. This can be a file but this can also be a tape device. The easiest way to create a device is using following sp_addumpdevice command:
EXECUTE sp_addumpdevice 'disk', 'dumpsdev','/home/dumps/sap01.dmp'
The first parameter designates the device as a file on disk or a tape device. The second parameter is called a logical name, and it will be used in commands performing the dump. The last one is the physical name of a device, in case of file this is just the name of a file.
Having such a device following command can be executed:
DUMP DATABASE master TO dumpsdev
This dump of master database will be saved in the dumpsdev this is in the file /home/dumps/sap01.dmp. Should you forget the connections between logical names and physical names, always a procedure sp_helpdevice can be used to display, how the device has been defined: