L
langloispy
Guest
Hello!
I have a client who wants to have a backup of his VMs on his server. To achieve that, I have create a mount point in fstab looking like this:
Then with PVE, I have setup a new backup storage that point on /backup/client1. Everything works fine until the remote server goes done. When it occurs, the backup is dropped locally on the host, which fills the / filesystem leading to "no space left on device" problem...
There are a couple solutions that could fix that problem. I would like to get your opinion on the question:
Option 1:
Change the permission of /backup/client1 to 555 and make the backup script runs with another user than root. That is my preferred solution since I found it simple. The problem is that I don't know how to make the backup script act as another user...
Option 2: Create a new tiny partition and mount it on /backup. Then mount the remote share on /backup/client1. If the share goes down, the /backup partition will be filled without effect on the / filesystem.
Option 3: Like option 2 but with a tmpfs
Option 4: Any other suggestion would be appreciated.
Thanks!
I have a client who wants to have a backup of his VMs on his server. To achieve that, I have create a mount point in fstab looking like this:
Code:
#sshfs#user@server.com:/remotepath /backup/client1 fuse user,auto,noatime 0 0
There are a couple solutions that could fix that problem. I would like to get your opinion on the question:
Option 1:
Change the permission of /backup/client1 to 555 and make the backup script runs with another user than root. That is my preferred solution since I found it simple. The problem is that I don't know how to make the backup script act as another user...
Option 2: Create a new tiny partition and mount it on /backup. Then mount the remote share on /backup/client1. If the share goes down, the /backup partition will be filled without effect on the / filesystem.
Option 3: Like option 2 but with a tmpfs
Option 4: Any other suggestion would be appreciated.
Thanks!