Adding disk for backup, what about mount options?

Wabun

Well-Known Member
Oct 6, 2012
89
5
8
Antwerpen
cPanel Access Level
Root Administrator
Hi all,

In participation of the new backup system, I am adding a disk to my VM for backups only.
What about these mount options in /etc/fstab?

Do I need to add noauto when using the Mount Backup Drive as Needed [Enabled] ???

#
# Backup drive
#
UUID=e3d9046b-a216-4652-a449-0b5d6d5918b3 /backup2drive ext4 defaults,noexec,nosuid,nodev,noatime 1 2

Thanks.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,216
463
Hello,

The following third-party URL documents what each mount option does:

mount(8) - Linux manual page

There's no need to add the "noauto" option to the /etc/fstab entry for this mount unless you want to prevent the system from mounting the drive at reboot time. Here's a third-party URL where this is discussed:

What is the noauto mount flag for?

The most common question we see about backup mount options is the use of "noexec". Here's a quote from our Backup FAQ document regarding this option:

If you use a mounted filesystem to store backups, we strongly recommend that you mount the system with the noexec option. If you pass the noexec parameter to the mount parameter, the binaries cannot run on the mounted filesystem.
Thank you.