chargeqert.blogg.se

Linux folder backup recursive
Linux folder backup recursive










linux folder backup recursive

rsync will delete partially transferred files caused by network glitches or other interruptions. We’re also using the -partial option here. For collections of larger files, it can reduce the transfer time in a meaningful way. The compression option will not yield significant benefits for transfers involving many small files. This compresses the file in transfer, but the file is stored uncompressed in the target directory. To speed up transfers, use the -z (compression) option.

  • to-chk: The number of files left to be checked and verified by the optimization algorithms.
  • xfr#: The number of files transferred so far.
  • Time remaining: Estimated time left to transfer this file.
  • Percentage: Percentage of the file transferred.
  • Byte size: Data transferred for this file.
  • The information provided can be seen between each copied file. rsync -raP /home/dave/Documents/ /media/dave/SILVERXHD/backups/ The -P (progress) option causes rsync to generate a small progress report after each file is copied. The speedup figure will represent the ratio between the small amount of data that was required to be transferred versus the total size of the files. It will only send the differences between the files, not the entire files. When rsync is next used, it will optimize the transfers. If rsync needs to copy all of the files in their entirety (the first time it is run, for example) the speedup will be 1.0.
  • Speedup: This is the ratio between the amount of data that had to be sent and the total amount of data that there is.
  • This figure will represent the data that did not have to be transferred. On subsequent runs of rsync it will only transfer the file differences.

    linux folder backup recursive

    Total size: Represents the size of the data that would have been sent if you were not using rsync.

    linux folder backup recursive

    Bytes/sec: is the effective transfer rate.Received: The bytes received at the host.Sent: The bytes transferred to the target.rsync -rav /home/dave/Documents/ /media/dave/SILVERXHD/backups/Ī summary of the backup is presented when the copying is complete. The -v (verbose) option forces rsync to list the files as they are being copied. rsync -ra /home/dave/Documents/ /media/dave/SILVERXHD/backups/ Use the -a (archive) option to preserve file attributes such as modification dates, file ownership, access permissions, and more, for copied files, symlinks, and special block files. Preserving File Ownership and Permissions Checking on the external drive we can see the backups directory has been created, and within that directory are the contents of the “/home/dave/Documents” directory.












    Linux folder backup recursive