teamhood Posted December 14, 2010 Share Posted December 14, 2010 Hey all, I'm hoping that someone linux guru can help me out with the proper rsync syntax to use to achieve the following Goal: To copy files from my Beast aka 15 drive unRAID to my 2 drive unRAID (free version for now) Location on beast: /192.168.1.75/disk11/audio Want to copy to : /192.168.1.65/disk1 Is this easy/possible to use Rsync? I'm just a little hung up on the proper command/syntax to make this work properly. Thank you for any advice.... Link to comment
starcat Posted December 14, 2010 Share Posted December 14, 2010 You can NFS mount the one on the other and copy locally via rsync, or you can copy without mounting, but the later is more difficult to setup. execute on 192.168.1.65: mkdir -p /mnt/beast/disk11 mount -t nfs 192.168.1.75:/mnt/disk11 /mnt/beast/disk11 rsync -av --stats --progress /mnt/beast/disk11/audio/ /disk1/ Link to comment
Spectrum Posted December 14, 2010 Share Posted December 14, 2010 1st step is to decide which machine is going to initiate the transfer and which is going to receive. For everything below I am assuming Beast (15 drives) is the initiator and Puny (2 drives) is the receiver, you can switch and swap things around if you want it another way Create an rsyncd.conf file and start rsyncd on Puny. Copy the below and save it as \\Puny\flash\config\rsyncd.conf uid = root gid = root use chroot = no max connections = 4 pid file = /var/run/rsyncd.pid timeout = 600 log file = /var/log/rsyncd.log [audio] path = /mnt/disk1 comment = Audio Backup read only = FALSE add the following to the end of \\Puny\flash\config\go rsync --daemon --config=/boot/config/rsyncd.conf Either reboot Puny or execute the above at the terminal on Puny. To transfer the files from Beast to Puny execute the following rsync -r /mnt/disk11/audio 192.168.1.65::audio/ That should be the basics and should get you going. Assuming I didn't make any typos or logic errors Link to comment
teamhood Posted December 15, 2010 Author Share Posted December 15, 2010 You can NFS mount the one on the other and copy locally via rsync, or you can copy without mounting, but the later is more difficult to setup. execute on 192.168.1.65: mkdir -p /mnt/beast/disk11 mount -t nfs 192.168.1.75:/mnt/disk11 /mnt/beast/disk11 rsync -av --stats --progress /mnt/beast/disk11/audio/ /disk1/ This seems simple enough, but I did get an error: root@Tower:~# mount -t nfs 192.168.1.75:/mnt/disk11 /mnt/beast/disk11 mount.nfs: mount to NFS server '192.168.1.75:/mnt/disk11' failed: RPC Error: Program not registered Link to comment
teamhood Posted December 15, 2010 Author Share Posted December 15, 2010 I noticed that on 'Beast' under Shares > Export Settings that NFS was blank. So I changed it to 'beast'. When I now execute the command on 'Tower' aka 192.168.1.65 I get the following: root@Tower:~# mount -t nfs 192.168.1.75:/mnt/disk11 /mnt/beast/disk11 mount.nfs: access denied by server while mounting 192.168.1.75:/mnt/disk11 Can I mount a disk... or does it have to be a User Share? Update: Export Settings is Export read/write FYI: beast is on 4.5.6 final (pro) Tower is on 4.6 Final (basic) Link to comment
mbryanr Posted December 15, 2010 Share Posted December 15, 2010 Disk shares (NFS): *(rw) Additional info here for a start: http://lime-technology.com/wiki/index.php?title=FAQ#How_do_I_configure_NFS_mounts.3F Link to comment
teamhood Posted December 15, 2010 Author Share Posted December 15, 2010 I just saw the wiki and added *rw Link to comment
teamhood Posted December 15, 2010 Author Share Posted December 15, 2010 WORKING!! THANK YOU... WE should add something to wiki about 'How to transfer files between unRAID servers' or something like that.... Link to comment
Spectrum Posted December 15, 2010 Share Posted December 15, 2010 Nut sure how much data you have going back and forth, and it may not be an issue on a local network, but rsync will compare file timestamps and will not retransfer data that it doesn't have to. If it's a one time copy it's not a big deal, but if it's something like a backup script there's no need to recopy the same files over and over again if there have not been any changes Link to comment
TomT Posted December 22, 2010 Share Posted December 22, 2010 You can NFS mount the one on the other and copy locally via rsync, or you can copy without mounting, but the later is more difficult to setup. execute on 192.168.1.65: mkdir -p /mnt/beast/disk11 mount -t nfs 192.168.1.75:/mnt/disk11 /mnt/beast/disk11 rsync -av --stats --progress /mnt/beast/disk11/audio/ /disk1/ I tried this method but instead of disk I use shares. Received "access denied by server" error. root@Tower2:~# mkdir -p /mnt/tower1/movies root@Tower2:/# mount -t nfs 192.168.11.101:/mnt/movies /mnt/tower1/movies mount.nfs: access denied by server while mounting 192.168.11.101:/mnt/movies I went to both Tower1 and Tower2 and set Disk Shares (NFS) = * (rw) Does this need to be disk to disk? How do I copy all the files from Tower1 share, say "movies" (spread between 2 disks) to Tower2 disk2? Thanks! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.