/etc/pve/lxc/<id>.conf.Thank you for your reply, i don't want to use the built-in backup feature because i want store my backup on AWS S3 not on local disk.Hi,
is there any specific reason why you don't want to use the built-in backup feature?
Anyway, make sure that you also backup the container's configuration file, stored in/etc/pve/lxc/<id>.conf.
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.what about do a backup for the (.vma.zst ) instead of backing the disk file (.raw) ? is it sufficient or there are other file ?
Thank youThis 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]
[1] https://forum.proxmox.com/threads/triggering-some-script-at-the-end-of-the-backups.59905/
[2] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_hook_scripts
[3] https://rclone.org/
9. Change permissions:echo AKIAWGD5EOSK NSHMW:KL9Y7yur39jsDHalsk laAJLrHTwi9crV > /etc/passwd-s3fs
9. update your aptchmod 640 /etc/passwd-s3fs
10. Install s3fsapt update
11. create the folder where you want to mount the s3 bucket, I call it s3-bucketapt install -y s3fs
12. Enable user_allow_other option by removing the trailing # in the Fuse config file (CTRL+X to exit and Y to save)mkdir /mnt/s3-bucket
13. Put an entry into fstab to mount the folder at startup:nano /etc/fuse.conf
add this line (insert your bucket name and mount folder name):nano /etc/fstab
14. Reboot your server (!)s3fs#proxmoxstorage /mnt/s3-bucket/ fuse _netdev,allow_other,url=https://s3.amazonaws.com 0 0
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 typesreboot
We use essential cookies to make this site work, and optional cookies to enhance your experience.