*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

rsync error Device or resource busy (16)

Synchronize files & directories to/from NAS4Free with minimal data transfer.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
bdario58
Starter
Starter
Posts: 16
Joined: 27 Jun 2016 16:31
Status: Offline

rsync error Device or resource busy (16)

#1

Post by bdario58 » 26 Aug 2016 12:24

Hello there,
I'm using rsync on NAS4Free 10.2.0.2 - Prester (revision 2407) to copy some files from a Windows server 2008 with cygwin library
All is fine except for some files which are in locked status.

the command I use is:
rsync -avrzh Administrator@192.168.20.45:/cygdrive/d/DATABASE_SISTEMI /mnt/ZFS-pool/server_20_45_D

the error I get is:
rsync: send_files failed to open "/cygdrive/d/DATABASE_SISTEMI/MSSQL.2/MSSQL/Data/PROFIS3.mdf": Device or resource busy (16)

I get the same error using the command "mv"

Is there any way to copy a locked file?
Thanks so much, any help is appreciated
Best regards
Dario

Jack Foobar
experienced User
experienced User
Posts: 131
Joined: 07 Jul 2015 01:24
Status: Offline

Re: rsync error Device or resource busy (16)

#2

Post by Jack Foobar » 02 Sep 2016 12:53

mdf is an actual database file. If it's in use, you can't copy it. You have to shut it down first. DB copies with backup software like Tivoli or Acronis or Symantec cost more because they have plugins within the app to soft down/shadow copy the server while it's ripping the database out. This is standard behavior, and the reason why people pay for backup software in the first place. Else everyone would just tar & rsync.

You are only supposed to rsync backup the local backup of the database. Not the live. So you schedule a db backup to a directory, and just back up that directory. You can't mess with the live db.

bdario58
Starter
Starter
Posts: 16
Joined: 27 Jun 2016 16:31
Status: Offline

Re: rsync error Device or resource busy (16)

#3

Post by bdario58 » 02 Sep 2016 22:03

Hello Jack,
now I'm looking for a command starting from NAS4Free to stop the windows service.
Thanks so much for your kindly help
Dario

Post Reply

Return to “RSYNC”