Results 1 to 2 of 2

Thread: rsync to flashdrive is slow

  1. #1
    Join Date
    Nov 2005
    Denver, USA
    Ubuntu 16.04 Xenial Xerus

    rsync to flashdrive is slow

    i run my backups through a script that uses rsync. if i have my flashdrive mounted, this line of code backs my Documents directory up to it:

    rsync -azvi --delete ~/Documents/ /media/$flashdrive/Documents
    the Documents directory is about 750mb. the first few times i ran this, the backup took less than 30 seconds to complete. now it takes over ten minutes, about as long as it used to take when i used to use cp to just copy the entire Documents directory to the flashdrive (before i discovered rsync).

    i'm not changing significantly more files than i was before or anything like that. my understanding is that rsync should only copy data from the source that has been changed to the destination. does anyone have any idea why this backup suddenly started to take so long?

  2. #2
    Join Date
    May 2008
    United Kingdom
    Lubuntu 16.04 Xenial Xerus

    Re: rsync to flashdrive is slow

    You don't want to use -z, which compresses data on transfer. This is useful over a network, but on the same computer it causes overhead as it both compresses and decompresses the data unnecessarily.

    You are correct that rsync copies only changed data.

    I am unsure as to why it should suddenly go so slowly. If there is little free space on the USB flash, it could be struggling to save the data (flash disks have an interesting method of saving data in order to prolong their lifespan). Check how much space you have left on the USB flash.
    Full system encryption with dual-boot —— Full Circle Magazine —— Problems with WINE?
    In my day, we had the outdoors in which to run, play, and socialise. Now people use computers for that.

Tags for this Thread


Posting Permissions

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