Using FTP as Datastore

Kryuz

Member
Nov 26, 2020
7
0
6
32
Hey,

I have 1 PVE with 5 VM and 1 CT. I would like to backup all of these and use incremental, so i turn myself to PBS.

I have a PBS but only 1 disk so none available for backup, only system.
I would like to know if there is a way to attach a FTP to my PBS and use it as a Datastore for my backup ?
This would permit me to backup my VM on a storage which is already available for me (no more billing) and those backup will be off-site, all that i want.

I tried to mount a FTP folder to my PBS with curlftpfs, it works, but my PBS don't see this as a disk and i can't use it.
Any idea ?

Thanks,
Kryuz.
 
Hey,

I have 1 PVE with 5 VM and 1 CT. I would like to backup all of these and use incremental, so i turn myself to PBS.

I have a PBS but only 1 disk so none available for backup, only system.
I would like to know if there is a way to attach a FTP to my PBS and use it as a Datastore for my backup ?
This would permit me to backup my VM on a storage which is already available for me (no more billing) and those backup will be off-site, all that i want.

I tried to mount a FTP folder to my PBS with curlftpfs, it works, but my PBS don't see this as a disk and i can't use it.
Any idea ?

Thanks,
Kryuz.
well, pbs does not need to see it as a disk, any mounted fs could probably be used as a datastore. If your curlftpfs is mounted, create a directory there and use that dir as the backing path in creating a datastore on pbs.
 
well, pbs does not need to see it as a disk, any mounted fs could probably be used as a datastore. If your curlftpfs is mounted, create a directory there and use that dir as the backing path in creating a datastore on pbs.
Thanks for your reply.

Btw, in my previous test i tried to add the datastore with the absolute path of the ftp mount point and it failed.
This morning i tried with your idea, a directory into the mounting point but it's the same, see the attach file.


My connection between my PBS and the FTP is correct, i can list and see the "test" folder, and when i mkdir the "backup" folder this one appear on the ftp, so all is ok from my point of view but i can't define it into the "Add datastore" screen. :(
 

Attachments

  • PBS-FTP.JPG
    PBS-FTP.JPG
    62.9 KB · Views: 109
Thanks for your reply.

Btw, in my previous test i tried to add the datastore with the absolute path of the ftp mount point and it failed.
This morning i tried with your idea, a directory into the mounting point but it's the same, see the attach file.


My connection between my PBS and the FTP is correct, i can list and see the "test" folder, and when i mkdir the "backup" folder this one appear on the ftp, so all is ok from my point of view but i can't define it into the "Add datastore" screen. :(
ah i see, i cannot think of any way around this but i don't know much about fuse, Perhaps it's because of the ownership root vs backup. Hopefully someone else might know.
 
I thought i was because my FTP server was on a Windows machine hard drive, a NTFS partition, so i build a Debian VM with ext4 and configure proftpd, it's the same.
If i try to add the datastore after mounting with curlftpfs it's not permited, if i unmount then try again it works.
The absolute path is correct but i think owner permission is the origin of this issue.
When i add a directory as a datastore the owner change to "backup" instead of root, so i think it can't change owner of a ftp mounted directory...
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!