Update main.py

Added a function to evaluate the size of elements to backup before archiving.