RSYNC and Directories

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

RSYNC and Directories

Post by rohded »

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: 2043
Joined: Thu Mar 03, 2016 1:11 am

Re: RSYNC and Directories

Post by FSC830 »

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

Regards
dosborne
Experience counts
Posts: 1764
Joined: Tue May 29, 2018 3:02 am
Location: Ottawa, Ontario, Canada

Re: RSYNC and Directories

Post by dosborne »

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 and General Ransomware Detection, Prevention, Recovery & MORE]
rohded
Getting the hang of things
Posts: 61
Joined: Sun Jun 21, 2009 5:26 am

Re: RSYNC and Directories

Post by rohded »

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”