RSYNC and Directories

Discussion on remote replication.
Post Reply
rohded
Getting the hang of things
Posts: 58
Joined: Sun Jun 21, 2009 5:26 am

RSYNC and Directories

Post by rohded » Thu Sep 29, 2022 12:16 am

Hi Team,

I am trying to use QNAP to RSYNC files to another directory on another NAS.

For Example.

Sync files in /VM to /VM on the other NAS.

In my case, it creates another VM directory on the remote NAS under /VM so files look like /VM/VM - files.

How can I keep the directories the same?

FSC830
Experience counts
Posts: 1595
Joined: Thu Mar 03, 2016 1:11 am

Re: RSYNC and Directories

Post by FSC830 » Tue Oct 04, 2022 7:07 pm

Did you use HBS3 for replication?
Or did you use CLI commands?
Please give some more details.

Regards

dosborne
Experience counts
Posts: 1097
Joined: Tue May 29, 2018 3:02 am

Re: RSYNC and Directories

Post by dosborne » Wed Oct 05, 2022 12:27 am

Rsync is very picky about the syntax and you need to be very careful about using a trailing slash or not. Also, in general without knowing a lot more information, copying /VM to /VM is generally wrong as what you want to do is copy /VM to / (as VM will be created/updated as it is part of the source).
QNAP TS-563-16G 5x10TB Seagate Ironwolf HDD Raid-5 NIC: 2x1GB 1x10GbE
QNAP TS-231P-US 2x18TB Seagate Exos HDD Raid-1
[Deadbolt - Updated Information on Detection, Prevention, Recovery & MORE]
[Deadbolt - How to Reset your NAS]
[Deadbolt - Read your OP_RETURN key YOURSELF]

rohded
Getting the hang of things
Posts: 58
Joined: Sun Jun 21, 2009 5:26 am

Re: RSYNC and Directories

Post by rohded » Wed Jan 18, 2023 3:33 am

Hi dosborne,

It seems copying /VM to / would take a share called "/". I have not been able to make one. Is it not possible?

Post Reply

Return to “Remote Replication/ Disaster Recovery”