rsync have not permissions for copy .lzo backups to secnod server from first server

Djiraf

Member
Mar 21, 2022
14
0
6
25
I would like to describe my problem:
I have 5 servers on Proxmox 7.4, each of which has backup storage, where .lzo backups virtual machines are saved. I need to save all .lzo from all backups storages on external HDD. How can I do this, when server which has bash script cant copy something from /mnt/vz/dump, because rsync does not have permissions?

I use the following command on another server:

rsync /mnt/vz/dump/*.vma.lzo root@192.168.1.6 /mnt/usb

and get this:

rsync: [sender] link_stat "/root/root@192.168.1.6" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1333) [sender=3.2.3]

On the differents forums i read, that i havent enough permissoins.
Maybe you could tell me another method for achieving my goal?

Thank you.
 
Your rsync command is not making sense. It is probably trying to copy a file named "root@192.168.1.6" and not finding it and that is the error you are seeing.
If going from a remote machine, the syntax is
Code:
rync [flags] user@remote:/path /local/path
Assuming your server is 192.168.1.6, try from another machine, something like:
Code:
rsync -av root@192.168.1.6:/mnt/vzdump/ /mnt/usb/vzdump/
Note the colon to separate the machine name and path along with flags for verbose and archive mode.
 
Your rsync command is not making sense. It is probably trying to copy a file named "root@192.168.1.6" and not finding it and that is the error you are seeing.
If going from a remote machine, the syntax is
Code:
rync [flags] user@remote:/path /local/path
Assuming your server is 192.168.1.6, try from another machine, something like:
Code:
rsync -av root@192.168.1.6:/mnt/vzdump/ /mnt/usb/vzdump/
Note the colon to separate the machine name and path along with flags for verbose and archive mode.
Thanks, it has largely solved the problem :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!