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.