rsync of backups/extras increases in size at target
Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By georged

Thread: rsync of backups/extras increases in size at target

  1. #1
    Active Member
    Join Date
    Dec 2014
    Posts
    8

    rsync of backups/extras increases in size at target

    Dear Zextras friends,

    I was setting up the rsync backup script (from my production server to an NFS-mounted filesystem off the backup server) and wanted to test the rsync speed.

    # rsync -av /opt/zimbra/backup /Backups/ZIMBRA/backuptest

    When finished, I checked the size of the two directories:
    • /opt/zimbra/backup is 9.9GB
    • /Backups/ZIMBRA/backuptest is 40 GB (!!!!)


    I have searched high and low in /opt/zimbra/backup for any symlinks (or hard links) that could explain /Backups/ZIMBRA/backuptest blowing up in size (by copying over also the targets of the links during rsync) but have found nothing! I would like to remove the /Backups/ZIMBRA/backuptest but now I am worried that if I: rm -rf backuptest I may remove files on the server that are symbolically linked.

    I would be grateful if I could understand the reason for this file growth and then figure out how to safely remove the rsync-ed directory tree in the target. Has anyone seen this behavior before?

    Any pointers would be greatly appreciated!

    Thank you for any help!
    George

  2. #2
    CTO ZeXtras Employee d0s0n's Avatar
    Join Date
    Apr 2011
    Posts
    565
    Hi George,

    I can assure that zxbackup doesn't make use of sim-links/hard-link or sparse files, so I can only suggest to check the block-size of your destination filesystem, because there are many small files, especially under the accounts folder (metadata).

    Have a nice day
    D0s0n
    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    Head of ZeXtras System Administrators

  3. #3
    Active Member
    Join Date
    Dec 2014
    Posts
    8
    Thank you! and you are absolutely right! After repeated tests and checking the difference is in the block file size!

    Thanks again!
    d0s0n likes this.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •