Bakcup to NAS Storage - How to limit resource access time interval

xmftech

New Member
Jan 11, 2025
6
0
1
Hello,

I am writing this thread to ask some questions about my backup system in my Home Lab:

First of all, I have a Mini PC with Proxmox VE running, an LXC container with PBS installed with Helper Scripts. I also have an old Synology DS215j NAS used for backups.

Following the instructions in this video, I configured:

- A new storage in Proxmox VE connected via SMB/CIFS to the Synology NAS
- This datastore added to the LXC container on a mount point
- Inside PBS, I created a Datastore pointing to previous mountpoint
- I created a new storage pointing to the PBS Datastore with a PBS user

So far everything was fine until I decided to complicate things a little more and leave the shared NAS resource accessible only during the backup time (previously calculated) for security reasons and also to save energy on the NAS. This from what I have seen causes Proxmox VE to fill the Syslog with entries in which it cannot access the NAS storage.

Faced with this scenario I decided to disable storage against the NAS until a little before the copy with crontab but I still encounter problems since PBS ends up failing with the verification tasks with I/O errors and the logs of the scheduled copy from Proxmox VE as well.

What I have done is add lines to the file /var/spool/cron/crontabs/root like this:

58 0 * * * /usr/sbin/pvesm set synology-nas-backup -disable 0

Is what I am doing correct? Is there a more optimal way to configure it?

Finally, two more questions:

- Can storage be configured using SMB/CIFS with Thin Provisioning?

- If I use NFS, is there a way to limit the user who has access to the resource? Limiting access via IP doesn't seem like a good idea to me since a computer could suffer an infection and in this way they could still write. With a user with a complex password I think it would be more complicated.