[SOLVED] Concern about backup on removable storage

Valerio Pachera

Active Member
Aug 19, 2016
131
6
38
43
Hi all, I was considering this scenario:
- add an usb drive
- mount in /media/backup-usb
- add it also to fstab
- create a new storage in proxmox of type dir for /media/backup-usb
- schedule backup on this storage

If the external usb gets removed for any reason, the schedule backup will write in /media/backup-usb that is an empty directory on /.
This will fill-up my root filesystem.

What do you think about it?
 
you can set is_mountpoint to avoid this (then the backup will fail because the storage is not available)
 
Code:
# pvesm help add
[…]
  -is_mountpoint <boolean>   (default=no)
        Assume the directory is an externally managed mountpoint. If
        nothing is mounted the storage will be considered offline.
[…]
 
and also 'pvesm help set' if you want to modify an existing storage