Hi!
I also read this before I post. I still new with Proxmox but I like it!
I have a latest Proxmox server using only 1 physical (home) server with Linux software raid, mostly for:
samba: file sharing: movies, music (for raspberry pi music players) and for windows notebooks for movies, music all about 200GB
nfs and tftp: raspberry pi network boot and usage without disk. For 4 raspberry pi with sensors, posting data to mqtt
mysql: for zabbix 5 monitoring, for home assistant and for sensor data
redis: for emoncms
mqtt: for raspberry pi for sensor data manage
influxdb: for sensor data
rrdtool: for sensor data visualization
grafana: for sensor data visualization
emoncms (PHP 7.0.30): for power usage data stats and visualization
zoneminder (PHP: 7.4): for security, with 3 web usb webcam
zabbix 5 (PHP: 7.4): monitoring devices and alarms
VM: home assistant: home automation, sensor data triggers
qbittorrent: for downloading
It's my "all in one" home server.
Using containers and VM. I prefer the smallest downtime, smallest backup size and most safest way, most easiest way if anything happening and need to restore from backup.
Please help me how create the proper way of backups, I tell what I plan to do and please approve my idea or tell better or more optimal. Please tell all important steps what needed to backup and restore. I will test it!
I had another Linux server with 1TB backup HDD (gigabit Ethernet connection), my Proxmox server have 2x1TB HDD too, it's ok for me.
I still thinking about mysql: what version to use? Percona or MariaDB? I prefer Percona.
I planned to backup:
P 0. Making a whole server backup with Acronis True Image or Clonezilla from HDD 1 of 2. It takes a long time and long downtime, as base backup. It will contains all partitions. What other way for that?
P 1. simple files (file server): rsync to backup HDD (using network connection to connect to backup HDD). After first copy it will be fast, because it will sync only the changes.
P 2. VM: currently only 1 VM: home assistant. Seems like the snapshot mode the best for me. Or you recommend me a suspend mode? Any incremental way?
P 3. Containers, if no database server inside: snapshot mode? Or stop mode? Any incremental way?
P 4. Container with mysql: Currnetly mysql data directory outside of container files, so if I backup, I backup only container files without mysql data. Percona have Percona XtraBackup, what is seems like optimal for me, helps me make a proper mysql data dump without mysql stop. Any better idea?
P 5. backing up a Proxmox settings and host: reboot with USB boot + make image backup (like Acronis True Image or Clonezilla) but it makes downtime for long. How do this better? Without downtime?
If I lost my all data from server (both HDD died in raid 1), how to restore, please correct and update my steps:
PLAN V1:
S -1. getting at least same size 2 HDD as before: 2x 1TB installed again.
S 0. restore data from all full image backup from HDD 1 of 2, but it's the oldest, but i get the HDD structure for raid, etc.
S 1. restore image backup from Proxmox host as I do in P 5.
S 2. booting from restored HDD 1, and waiting for rebuild this HDD 2 by Linux Software raid 1.
Because of Linux software raid, I need to update grub to boot from HDD 2? Or what needed? What command?
Now my Proxmox host are the latest and Raid 1 working again, but my all containers and vms are out of date.
S 3. restore latest vm from latest backup
S 4. restore all container from latest backup
S 5. restore all files from latest backup, rsync back from backup
S 6. start all containers and vms, done? I forgot something?
Please help me to correct this steps and backup ways.
PLAN V2: For me, the most easiest way to shutdown Proxmox server, boot from USB (Clonezilla) and create a full image backup to external HDD or to other Linux server.
If any problem, just restore from this image and all done. Or also need to update grub for boot in HDD2?
But it makes maybe long downtime. But maybe faster if I try to make incremental backup, but I don't know it can work in image backup? Also problem I need to do this manually. Possible any automated way of this?
PLAN V3: Or adding 3. HDD to server but not mounted to Proxmox. Late night a planned reboot booting a full backup small partition image (Clonezilla?) what automatically making a full or incremental backup from HDD 1 to HDD 3. It's the smallest downtime possible but for hours also stop. Easy to recover. Problem: 3. HDD inside or 3. HDD need work all times. It will work if Clonezilla will be in 3. HDD first partition and 3. HDD 2. partition will be like EXT4 as data partition?
PLAN V3.5: Same ideas as before, just the backup server at scheduled time, same scheduled time as the Proxmox server are turn on, and backing up to powered on server and after done, shutting down it with command. So, at every Monday 2:00 turn on this backup Linux PC with backup storage, also Proxmox server scheduled stop all services in 1:59 and reboot for backup at 2:00 and 2:05 after boot done in Clonezilla automatically start backup to 2:00 powered on server. After backup done, sending remote shutdown to powered on PC. After booting back to Proxmox and starting back all services. Possible?
PLAN V4: My most stupid idea but like no downtime and easy backup: i first install a Xen (xcp-ng) server and adding 1 big vm using all resources and hdd space. Inside this vm just installing Proxmox with vm + containers. And if I need a full Proxmox backup, just making a snapshot with xcp-ng, and done. Also I save the xcp-ng installation first. If and problem, I restore the xcp-ng backup, starting xcp-ng and restore from snapshot, and all Proxmox settings, vms, containers are back. It will be so slow, right? But possible?
PLAN V5: tell me better please.
For me the PLAN V3.5 seems like the best way, because easiest to recover if any problems because 1 image contains all. Problem: long downtime and need 2. server proper setup and also don't know how possible to do this times reboot from other partition, starting auto backup, etc. Also Raspberry Pi's what is using this Proxmox as file system will be crash, so also need to same time stop and turn on, but don't know how. So better to no downtime solution but so difficult to restore data?
I also read this before I post. I still new with Proxmox but I like it!
I have a latest Proxmox server using only 1 physical (home) server with Linux software raid, mostly for:
samba: file sharing: movies, music (for raspberry pi music players) and for windows notebooks for movies, music all about 200GB
nfs and tftp: raspberry pi network boot and usage without disk. For 4 raspberry pi with sensors, posting data to mqtt
mysql: for zabbix 5 monitoring, for home assistant and for sensor data
redis: for emoncms
mqtt: for raspberry pi for sensor data manage
influxdb: for sensor data
rrdtool: for sensor data visualization
grafana: for sensor data visualization
emoncms (PHP 7.0.30): for power usage data stats and visualization
zoneminder (PHP: 7.4): for security, with 3 web usb webcam
zabbix 5 (PHP: 7.4): monitoring devices and alarms
VM: home assistant: home automation, sensor data triggers
qbittorrent: for downloading
It's my "all in one" home server.
Using containers and VM. I prefer the smallest downtime, smallest backup size and most safest way, most easiest way if anything happening and need to restore from backup.
Please help me how create the proper way of backups, I tell what I plan to do and please approve my idea or tell better or more optimal. Please tell all important steps what needed to backup and restore. I will test it!
I had another Linux server with 1TB backup HDD (gigabit Ethernet connection), my Proxmox server have 2x1TB HDD too, it's ok for me.
I still thinking about mysql: what version to use? Percona or MariaDB? I prefer Percona.
I planned to backup:
P 0. Making a whole server backup with Acronis True Image or Clonezilla from HDD 1 of 2. It takes a long time and long downtime, as base backup. It will contains all partitions. What other way for that?
P 1. simple files (file server): rsync to backup HDD (using network connection to connect to backup HDD). After first copy it will be fast, because it will sync only the changes.
P 2. VM: currently only 1 VM: home assistant. Seems like the snapshot mode the best for me. Or you recommend me a suspend mode? Any incremental way?
P 3. Containers, if no database server inside: snapshot mode? Or stop mode? Any incremental way?
P 4. Container with mysql: Currnetly mysql data directory outside of container files, so if I backup, I backup only container files without mysql data. Percona have Percona XtraBackup, what is seems like optimal for me, helps me make a proper mysql data dump without mysql stop. Any better idea?
P 5. backing up a Proxmox settings and host: reboot with USB boot + make image backup (like Acronis True Image or Clonezilla) but it makes downtime for long. How do this better? Without downtime?
If I lost my all data from server (both HDD died in raid 1), how to restore, please correct and update my steps:
PLAN V1:
S -1. getting at least same size 2 HDD as before: 2x 1TB installed again.
S 0. restore data from all full image backup from HDD 1 of 2, but it's the oldest, but i get the HDD structure for raid, etc.
S 1. restore image backup from Proxmox host as I do in P 5.
S 2. booting from restored HDD 1, and waiting for rebuild this HDD 2 by Linux Software raid 1.
Because of Linux software raid, I need to update grub to boot from HDD 2? Or what needed? What command?
Now my Proxmox host are the latest and Raid 1 working again, but my all containers and vms are out of date.
S 3. restore latest vm from latest backup
S 4. restore all container from latest backup
S 5. restore all files from latest backup, rsync back from backup
S 6. start all containers and vms, done? I forgot something?
Please help me to correct this steps and backup ways.
PLAN V2: For me, the most easiest way to shutdown Proxmox server, boot from USB (Clonezilla) and create a full image backup to external HDD or to other Linux server.
If any problem, just restore from this image and all done. Or also need to update grub for boot in HDD2?
But it makes maybe long downtime. But maybe faster if I try to make incremental backup, but I don't know it can work in image backup? Also problem I need to do this manually. Possible any automated way of this?
PLAN V3: Or adding 3. HDD to server but not mounted to Proxmox. Late night a planned reboot booting a full backup small partition image (Clonezilla?) what automatically making a full or incremental backup from HDD 1 to HDD 3. It's the smallest downtime possible but for hours also stop. Easy to recover. Problem: 3. HDD inside or 3. HDD need work all times. It will work if Clonezilla will be in 3. HDD first partition and 3. HDD 2. partition will be like EXT4 as data partition?
PLAN V3.5: Same ideas as before, just the backup server at scheduled time, same scheduled time as the Proxmox server are turn on, and backing up to powered on server and after done, shutting down it with command. So, at every Monday 2:00 turn on this backup Linux PC with backup storage, also Proxmox server scheduled stop all services in 1:59 and reboot for backup at 2:00 and 2:05 after boot done in Clonezilla automatically start backup to 2:00 powered on server. After backup done, sending remote shutdown to powered on PC. After booting back to Proxmox and starting back all services. Possible?
PLAN V4: My most stupid idea but like no downtime and easy backup: i first install a Xen (xcp-ng) server and adding 1 big vm using all resources and hdd space. Inside this vm just installing Proxmox with vm + containers. And if I need a full Proxmox backup, just making a snapshot with xcp-ng, and done. Also I save the xcp-ng installation first. If and problem, I restore the xcp-ng backup, starting xcp-ng and restore from snapshot, and all Proxmox settings, vms, containers are back. It will be so slow, right? But possible?
PLAN V5: tell me better please.
For me the PLAN V3.5 seems like the best way, because easiest to recover if any problems because 1 image contains all. Problem: long downtime and need 2. server proper setup and also don't know how possible to do this times reboot from other partition, starting auto backup, etc. Also Raspberry Pi's what is using this Proxmox as file system will be crash, so also need to same time stop and turn on, but don't know how. So better to no downtime solution but so difficult to restore data?