cloudnull / InstanceSync

Bash Script to Sync Linux Instances from one to another
GNU General Public License v3.0
92 stars 39 forks source link

Exclude /run, /proc and /var/run? #13

Open robinsmidsrod opened 8 years ago

robinsmidsrod commented 8 years ago

I noticed in the exclusion list that /run, /var/run and /proc are not excluded when running rsync. Shouldn't they be, at least on Debian/Ubuntu machines?

cloudnull commented 8 years ago

These items certainly could be excluded. That said, I've not had any reports that this is causing an issue in cloning a node. Have you found something needing to be excluded that is otherwise causing an issue or is this more of an enhancement?

robinsmidsrod commented 8 years ago

There is one file in /proc that is related to your memory map, which I think should never be copied. I've noticed while I was migrating nodes that the second run through the data takes forever, even if all processes have been stopped. This suggests that memory-related files are checked and copied.

/run and /var/run are usually symlinked to the same location and wiped during reboot, so I don't see a big reason why they would need copying, as they contain runtime-files used by running processes.