"rsync: No match." when trying rsync over ssh session.

Vincent Jansen

Explorer
Joined
May 16, 2014
Messages
82
Hello,
Okey, ive done actions like this in the past under freenas but now im using truenas, this is no longer working for me.
I installed a new pool and want to move my data from an old pool to a new one.
So I want to ssh into my truenas and do an Rsync command. Looks like this:

rsync -av --append --progress /mnt/RaidzDisk4/Studie14d/* /mnt/RaidzDisk1/RaidzDisk1/Studie14a

Disk 4 is the old Disk 1 is the new.
when I try to run this I get the following and I have no clue why.

root@Collection14:/ # rsync -av --append --progress /mnt/RaidzDisk4/Studie14d/* /mnt/RaidzDisk1/RaidzDisk1/Studie14a
rsync: No match.

Why is this not working?

p.s. the RaidzDisk1/RaidzDisk1 is because truenas does not allow me to change permissions of the main pool folder.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
You don't use "*" with RSync. It is also screwy if you have a "/" on on side and not on the other.

So this is probably what you meant, (but don't hold me responsible);
rsync -aAHSXv --append --progress /mnt/RaidzDisk4/Studie14d/ /mnt/RaidzDisk1/RaidzDisk1/Studie14a/
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
"no match" is printed by the shell if it cannot expand a glob. Most likely "/mnt/RaidzDisk4/Studie14d/*" does not in fact point to any files.
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
If you put it in quotes, it will not be expanded and there is probably no file named "*". Overlooked that one at first. Just drop the "*", it's not necessary.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Top