I want to perform a backup to my lxc container from my TrueNAS manually.
What are the files that sould i back them?
is the disk file (.raw) sufficient or there are other file ?
Thank you
This is what I would do. I'd use the built-in backup mechanism to backup to a local disk, and then I'd sync the local contents to S3. You could perform the last step with the aid of a backup hook script [1,2]. The .vma.* files contain everything needed to restore a VM/container - images for all disks, as well as the configuration.
You could also look into using rclone as a backing directory storage for your backups [3]
This is what I would do. I'd use the built-in backup mechanism to backup to a local disk, and then I'd sync the local contents to S3. You could perform the last step with the aid of a backup hook script [1,2]. The .vma.* files contain everything needed to restore a VM/container - images for all disks, as well as the configuration.
You could also look into using rclone as a backing directory storage for your backups [3]
For anyone stumbling in this topic, as of 2022 seems the s3fs-mounted folder is working smoothly, I can backup all my VMs without issues.
A quick recap:
Log into AWS Console
Create a non-admin user
Go to security Credentials and create a new Access Key, take note of the ID and password
Go to the S3 service and create a new bucket, let's call it proxmoxstorage
The in the bucket's Management tab create a new Lifecycle rule, I move files to the Glacier with Instant Retrieval after 7 days to greatly reduce the costs but still fast retrieval when needed. It's your choice.
Go to your Proxmox PVE server and open the Shell console
Create a variable with the Access Ke you've just noted down:
15. In the Datacenter Storage section add a new storage of type Directory and insert your mounted dir (/mnt/s3-bucket), choose a meaningful ID like AWS-s3, and select all the content types
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.