The most important MAIN NODE directories

bjochym

New Member
Mar 5, 2024
3
0
1
Hi,
I am creating a bash script with rsync to move data from a proxmox_node to a NAS. Which directories are the most important, and which ones can I ignore?
Thanks for your help.

Please find the rsync command attached below:


sudo rsync -aA \
--exclude={"/mnt/pve/backups/*","/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/var/lib/vz/*","/var/log/old_logs/*","/var/tmp/*","/var/lib/lxcfs/proc/*"} \
/ "$backup_dir/$backup_subdir"
 
Maybe just go with --one-file-system and rsync only /boot and your root partition. Depending on your setup, this is enough. Keep in mind that just having the files will not be enough to get a bootable version of your OS.

You may also look at ReaR, as explained here.
 

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!