Backup Fail - Rsync fails to finish the operation

Sometimes Rsync can't finish on time because Rsync can't set SEattribut to symbol link. The logs may show the error like the following:

Running: rsync -aHAX --exclude '/dev' --exclude '/proc' --exclude '/sys' --exclude '/selinux' --exclude '/tmp' --delete /mnt/onapp-backup-fpj2mne7y5d3xz/ /onapp/backups/u/q/uqwge7qrlvnyns/

rsync: rsync_xal_set: lsetxattr("usr/local/psa/admin/bin/.send-error-report.HZohSL","security.selinux") failed: Operation not supported (95)

rsync: rsync_xal_set: lsetxattr("usr/local/psa/bin/.yum_install.j805YS","security.selinux") failed: Operation not supported (95)

rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]

Fatal: Execution of rsync -aHAX --exclude '/dev' --exclude '/proc' --exclude '/sys' --exclude '/selinux' --exclude '/tmp' --delete /mnt/onapp-backup-fpj2mne7y5d3xz/ /onapp/backups/u/q/uqwge7qrlvnyns/ failed

Executing Rollback...


At this moment if SElinux is not used, you can use the following workaround:

1. Remove se attribute for the following file:
attr -S -r <Attribute> path_to_file

for example:

You will find the path in this part of the error:
rsync: rsync_xal_set: lsetxattr("usr/bin/systemd-detect-virt","security.capability") failed: Operation not supported (95)

it is this part usr/bin/systemd-detect-virt

# attr -l ./file
or #attr -l /usr/bin/systemd-detect-virt

Attribute "selinux.security" has a 1 byte value for ./file
Attribute "secondtt" has a 2 byte value for ./file

#attr -S -r secondtt ./file
or #attr -S -r secondtt /usr/bin/systemd-detect-virt

  • Email, SSL
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Edit Virtual Server Network Speed

1. Click Networking > Network Interface to view your port speed2. Click the edit icon to...

Edit Resource Virtual Server

Editing your virtual server allows you to make changes to the label, CPU, RAM and time zone of...

Rebuild Virtual Server - Changing Your OS

Rebuilding Virtual Server allows you to change the OS of your server without having to create a...

Basic Cloud Server Navigation

1. Dashboard - Gives you an overview of the current resources in your cloud environment (CPU,...

Migrate Virtual Server

Virtual server migration allows you to move your virtual server from 1 physical server to...