Rsync with IO error encountered how to do?

Source: Internet
Author: User
Tags file size readable file permissions rsync

The server is to use Windows version of the Cwrsync to sync, the original synchronization should be good to--delete parameters after the error occurred

IO Error encountered-skipping File deletion

Looking for a long time did not find a solution, check the directory permissions, the server log did not see the disk error log information on the Internet to find a temporary solution.

After a closer look at the parameters of rsync, you find an option to:

--ignore-errors Delete Even if I/O errors occur

(Delete even if I/O errors occur)

Then add this parameter and perform the synchronization again, the problem is solved.

But as for why Rsync has wrongly reported this error, I have not yet found the reason, if any one know, welcome to dispel.

The common parameter options for rsync are enclosed for easy reference:

Options description

-A,--archive archive mode, which represents a recursive transfer of files and maintains all file attributes, equivalent to-rlptgod (excluding-h)

-R,--recursive the subdirectory in recursive mode

-L,--links keep symbol link file

-H,--hard-links keep hard link file

-P,--perms keep file permissions

-T,--times keep file time information

-G,--group keep file group information

-O,--owner keep file owner information (super-user only)

-D Maintain device files and special files (super-user only)

-Z,--compress compression when transferring files

--exclude=pattern specifies to exclude a file-matching pattern that does not require transmission

--exclude-from=file read exclusion rules from FILE

--include=pattern Specifies the file matching pattern that needs to be transferred

--include-from=file read the Include rule from FILE

--copy-unsafe-links copy points to a link file other than the SRC path tree

--safe-links ignore linked files that point to the SRC path tree (default)

--existing only updates files that already exist on the receiving end without backing up those newly created files

--ignore-existing ignores files that already exist on the receiving end and backs up only those newly created files

-B,--backup backup of legacy files in target directory when changes are made

Use--backup-dir=dir with-B to save backed up files in dir directory

--link-dest=dir Create a hard link file based on DIR when the file is unchanged

--delete Delete those files where the receiver and the sender are no longer present

--delete-before recipient deletes before transmission (default)

--delete-during recipient deletes during transfer

--delete-after recipient deletes after transmission

--delete-excluded Delete excluded files at the same time as the receiver

-E,--rsh=command specifies a shell program that replaces rsh

--ignore-errors Delete Even if I/O errors occur

--partial retains files that are not fully transmitted for some reason, to expedite subsequent transmissions

--progress Displays the transfer process during transmission

-P is equivalent to--partial--progress

--delay-updates Save the file you are updating to a temporary directory (the default is ". ~tmp~") and update the target file before it is transferred

-V,--verbose verbose output mode

-Q,--quiet thin output mode

-h,--human-readable output file size using readable units (e.g., k,m, etc.)

-N,--dry-run shows which files will be transmitted

--list-only only lists files without copying them

--RSYNCPATH=PROGRAM specifies the path to the rsync command on the remote server

--password-file=file reads the password from file to avoid entering a password on the terminal, typically using the rsync server in cron

-4,--ipv4 use IPV4

-6,--ipv6 use IPV6

--version Print version Information

--HELP Display Help information

Attention:

If you run the rsync command using an ordinary user identity, the owner of the synchronized file changes to this normal user identity.

If you run the rsync command using Superuser status, the owner of the synchronized file retains the original user identity.

The command mode for the transfer is:

rsync [OPTION] ... [user@] HOST::SRC [DEST]

Parameter description:

-V,--verbose verbose mode output

-Z,--compress compression of backed-up files on transfer

-R,--recursive the subdirectory in recursive mode

-T,--times keep file time information

-O,--owner keep file owner information

-P,--perms keep file permissions

-G,--group keep file group information

--progress Display backup process

--delete Delete files that are not in the DST SRC

--exclude "data/" indicates that the files in the/home/user01/backup/data/directory are not backed up

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.