Koozali.org formerly Contribs.org

how big is my backup going to be?

Offline 7eis

how big is my backup going to be?
« on: May 16, 2009, 07:56:50 PM »
Since I keep a lot of stuff in /opt the estimated backup size reported by the server-manager is very inaccurate. 

This is more accurate (paths stolen from /usr/lib/perl5/site_perl/esmith/Backup.pm )
Please note that this is the size before any compression is applied (and compression is very content-specific so you should get different figures for different backups/machines). Consider this the biggest possible backup size.

du -hsc /home/e-smith/ /etc/e-smith/templates-custom/ \
/etc/e-smith/templates-user-custom/ /etc/ssh/ /root/ \
/etc/sudoers /etc/passwd /etc/shadow /etc/gshadow \
/etc/samba/secrets.tdb /etc/samba/smbpasswd

you can save it as a text file. chmod +x the file to make it executable

Sample output:
# /root/howbigismybackupgoingtobe
151G    /home/e-smith/
76K     /etc/e-smith/templates-custom/
4.0K    /etc/e-smith/templates-user-custom/
152K    /etc/ssh/
289M    /root/
4.0K    /etc/sudoers
8.0K    /etc/passwd
4.0K    /etc/shadow
4.0K    /etc/gshadow
12K     /etc/samba/secrets.tdb
4.0K    /etc/samba/smbpasswd
151G    total
« Last Edit: May 16, 2009, 07:59:26 PM by 7eis »

Offline versa

  • ***
  • 109
Re: how big is my backup going to be?
« Reply #1 on: May 16, 2009, 08:46:44 PM »
I cannot answer your question but just something that you may or may not be aware of,
/opt is not included in a standard backup to workstation / usb set
Some info here on backup set
http://wiki.contribs.org/Backup_server_config#Standard_backup_.26_restore_inclusions

This tells you how to include /opt
http://wiki.contribs.org/Backup_with_dar#Adding_Directories_and_Files_to_the_list_of_backup_inclusions
......

Offline 7eis

Re: how big is my backup going to be?
« Reply #2 on: May 16, 2009, 08:58:16 PM »
Well its not really question, I just wanted to share this info in case anyone wondered.